[Set Program to menu]
Ths option allows any menu option to be replaced with a simple call to an AMOS
Professional program. This can be loaded from disc automatically, and executed every time the
appropriate menu option is called. Alternatively, the program can be permanently installed in memory,
ready for instant use.
If the program has been defined as an Editor Accessory with the SET ACCESSORY instruction, it will even be able to call up a program listing directly, and display the results on the Editor screen. This means that the Editor can be extended as much as you like! Please see Chapter 13.1 for a complete explanation of this superb feature.
Here is the procedure for replacing a menu option with a program:
[Command Line:]
This holds some text that will be available from the COMMAND LINE$ function when the
program is run. If this is left blank, AMOS Professional will grab all of the characters to the right
of the Editor cursor into the COMMAND LINE$ string. This provides a simple way of creating
your own "Help" routines.
The program can be loaded in one of two ways:
[Load As Accessory]
This will load the program as an accessory, which will not be available from the [AMOS]
main menu heading, but will be hidden away in memory.
[Load in current window]
This saves the current program onto disc, and replaces it with the new menu routine.
[Keep After Run]
After the program has been run, there are two alternative choices as to what can
happen:
[Un-ticked]
If the program was loaded as an accessory, it will be removed from memory. If it was
entered via the current window, it will be erased and the previous program will be re-loaded automatically.
[Ticked]
The program will remain permanently in memory after it has been run. It will be stored as
an accessory or directly in the current window, depending on the option that has been selected.