Amos Professional Manual  Contents  Index

Interface Language


All coordinates are measured from the start location of the dialogue box, which can be set by the Interface instruction BAse, or the AMOS Professional command DIALOG BOX. The default position is the top left-hand corner of the screen.

INk
Interface instruction: set current drawing colours
IN pen,background,outline;

The colours for boxes and bars and all future drawing operations are set by the INk command. The three parameters are as follows:

The pen parameter is set by the colour index number to be used for drawing all future items.

The background colour is then chosen for filling bars and for the paper colour on which text is to be printed. This option is usually ignored, because the background is completely transparent, but it may be activated using a SetWriting mode, which is explained later.

The third parameter to be set is for the outline colour of a bar. This is only relevant if the outline mode has been switched on, using a previous SetPattern instruction, also explained later.

If one of these settings is to be left unchanged, simply enter a negative value for the relevant colour number. As you may expect, a wide range of fill patterns can also be used.

SetPattern
Interface instruction: set the fill pattern for dialogue box
SP pattern number,outline mode;

The Interface SetPattern command is a combination of the normal SET PATTERN and SET PAINT instructions, and it is used to set the fill pattern and toggle the outline mode of all subsequent GraphicBox commands.

The pattern for all future drawing operations is an index number from zero to 34. The outline mode can be set to zero to turn it off completely, or to 1 to activate the feature. If the setting is activated, bars will be automatically enclosed by a hollow box in the current outline colour.

To generate a hollow box in its own right, the next command is used.

GraphicSquare
Interface instruction: draw a hollow rectangle
GS x1 ,y1 ,x2,y2;

This is the equivalent to the normal BOX command, and it is used to draw a hollow rectangle, determined by the coordinates of the top left and bottom right-hand corners.

Back    Next
09.02.03