Contents | Index | < Browse | Browse >

                              GRAPHICS
===========================================================================

These are the graphics commands that you can use to tart-up your GUI. 

They are treated in every way as if they were normal events, like
buttons etc, but since they can not be selected, they never "happen"
so no commands can be attached to them.

	Example :  Run Gui   Source 

You can, however, give them a GadID, like normal Events, and SetGad
or ChangeGad them, redrawing them to new positions.


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.