CompuServe Messages

gGadgets

    10-Jun-93 00:31:43
Sb: #35226-gGadgets
Fm: Michael McCormick 71360,2100
To: Steven Park 73617,3462
Steven, Here is a small function I have that uses the function DrawBevelBox(), Hope this will be enough of a example. void RenderFilledBox(struct Window *w, UBYTE apen, WORD left, WORD top ,WORD width, WORD height, UBYTE look, ULONG type) { SetAPen(w->RPort, apen ); if (raised == look ) { DrawBevelBox(w->RPort, left, top, width, height, GTBB_FrameType, type, GT_VisualInfo, VisualInfo, TAG_DONE ); } else if ( lowered == look ) { DrawBevelBox(w->RPort, left, top, width, height, GTBB_Recessed,TRUE, GTBB_FrameType,type,GT_VisualInfo,VisualInfo,TAG_DONE ); } SetAfPt(w->RPort, NULL, 0 ); SetAPen(w->RPort, apen ); RectFill(w->RPort, left + 2, top + 1, left + width – 3,top + height – 2 ); } P.S. I use a enum for the lowered or raised and declare it in my globals.h file. enum look { raised, lowered }; MikeM:) "Amiga means never having to say you're sorry!"