Amos Professional Manual  Contents  Index

the Joystick and Mouse


Use MOUSE SCREEN to return the number of the screen where the mouse pointer is currently located, like this:

E> X=Mouse Screen
   Print X

Displaying menus with the mouse pointer
Finally, as an AMOS Professional programmer, you will want to make use of the automatic facility for displaying all the menus whose root starts from the current position of the mouse pointer.

MENU MOUSE
instruction: display menu under current mouse pointer location
Menu Mouse On
Menu Mouse Off

When this facility is turned ON, any menus that have been set up at the current location of the mouse pointer are instantly displayed on screen. The mouse coordinates are added to the MENU BASE in order to calculate the position where the menus are displayed, so you are able to place a menu at a pre-set distance away from the mouse pointer if you like. To stop this automatic process, simply use MENU MOUSE OFF.

Please see Chapter 6.5 which deals with all aspects of AMOS Professional menus, if you are not experienced in their use.

Back    Next
05.08.07