Amos Professional Manual  Contents  Index

Menus


ON MENU GOTO
instruction: automatic menu selection
On Menu Goto label1
On Menu Goto label1, labe12...

Although this command is available for use, it has been superseded by the more powerful ON MENU PROC and ON MENU GOSUB instructions. It is retained to provide compatibility with programs written in STOS Basic.

ON MENU ON/OFF
instruction: toggle automatic menu selection
On Menu On
On Menu Off

To activate the automatic menu system created by the ON MENU PROC, GOSUB or GOTO commands, simply give the ON MENU ON command. After a subroutine has been accessed in this way, the system is automatically disabled. Therefore you must reactivate the system with ON MENU ON before returning to the main program.

To suspend the automatic menu system, ON MENU OFF is used. This can be vital if your program is executing a procedure which must be performed without interruptions, such as loading and saving information to disc. Menus are reactivated using ON MENU ON.

ON MENU DEL
instruction: delete labels and procedures used by ON MENU
On Menu Del

Use ON MENU DEL to erase the internal list of labels or procedures created by the range of ON MENU commands. You are warned that this command can only be used after menus have been deactivated by ON MENU OFF.

The Menu control commands

MENU ON
instruction: activate a menu
Menu On
Menu On bank number

The simple form of this command has already been dealt with at the beginning of this Chapter. After MENU ON, a menu is displayed when the user next presses the right mouse button. If an optional bank number is included after the command, the appropriate menu will be taken from the numbered memory bank. Please see MAKE MENU BANK, below.

MENU OFF
instruction: deactivate a menu
Menu Off

Back    Next
06.05.05