GRAPHICS COMMANDS =========================================================================== These are the graphics commands that you can use to tart-up your GUI. No commands can be attached to them and they can appear anywhere in the program, outside the body of an event. For clarity sake though, I usually put them at the beginning of the program, after the Global Commands. Example : @{" Run Gui " system "gui guis:docs/tutorials/Graphics.gc"} @{" Source " link "guis:docs/tutorials/Graphics.gc/Main"} Note that you can give a GadID to these commands, as if they were Events, and then can setgad/changegad them and redraw them to new positions. You can not, however, attach any commands to them, as a graphic does not "happen" so they will never be executed.. BOX L T W H IN|OUT BUTTON|RIDGE|ICONDROP Draw a beveled box of size L T W H. IN means that the box will be recessed, OUT means the opposite. You can have 3 types of boxes : BUTTON, RIDGE or ICONDROP. These have different border types - try them out. CTEXT L T Text FontName size FGpen BGpen UL|BD|IT|EMBOSS|SIZE(Mask) Draw colored text, starting at (L)eft, (T)op. (New with V3.2 is that you can add a "Shading" or 3D effect) Text = The text to be drawn FontName = the font to use (ex: topaz.font or #MONO or #SCREEN) Size = The size of the font FGpen = Foreground pen number BGpen = Background pen number (-1 means leave the background alone) Mask = This is a mask (see the WinType command for explanation) Digit 1 = Undelined (1=yes, 0=no) Digit 2 = Bold Digit 3 = Italic Digit 4 = The color number you want to use for "shading" Digit 5 = The offset of the shade (defaults to 1) Example : CTEXT 10 30 "Test text" times.font 11 2 -1 01032 LINE X Y x y ColorNo Draw a line from X,Y to x,y, of ColorNo color. SQUARE X Y x y ColorNo FILL|NOFILL Draw a square from X,Y to x,y, of color ColorNo. FILL means filled - NOFILL means that only an outline is drawn. CIRCLE centerL centerT xradius yradius ColorNo FILL|NOFILL Draw a circle at centreL, centerT, with the respective radii. FILL it or NOFILL it with ColorNo color. ICON Left Top IconName Display icon as image at Left, Top. The only difference from the xIcon event, is that this is not clickable.