Amos Professional Manual  Contents  Index

Interface Language


This Chapter deals with all of the AMOS Professional Interface general purpose programming commands.

The Interface is a complete language, and includes a full set of general instructions that can be used to great effect in dialogue boxes. There is an extensive range of graphics commands, a testing facility and a pair of important program control instructions for making jumps. The Interface even provides fully-operative procedures and user-defined functions!

The graphics functions
When defining a number of buttons, it is important to be able to arrange them neatly as part of the display. The AMOS Professional Interface provides a number of simple functions to shoulder the burden of these problems.

As usual, these functions read their values directly from the number stack, so the numbers go before the operations.

BaseX
BaseY
Interface functions: get the coordinate base location
x=BX
y=BY

These functions are used to return the screen coordinates that are to be used as the starting point for all future calculations. These values are assumed to have been previously set with the BAse instruction.

SizeX
SizeY
Interface functions: get the size of the dialogue box
width=SX
height=SY

Use these functions to provide the precise dimensions of the current dialogue box, as set with the SIze command.

Screen Width
Screen Height
Interface functions: read dimensions of the current screen
width=SW
height=SH

The SW and SH functions find the height and width of the current AMOS Professional screen. They can be used in conjunction with the SX and SY functions to position a dialogue box neatly in the centre of the display. For example:

X> Size 240.100;
   BAse SW SX 2/-,SH SY 2/-;
Back    Next
09.02.01