Amos Professional Manual  Contents  Index

Menus


This is similar to MENU MOVABLE, but it allows the re-arrangement of various options in a particular level. Normally it is not possible to move items outside of the current menu bar, but this can be overcome by the MENU SEPARATE command, which is explained below.

To use MENU ITEM MOVABLE for changing the position of a menu item, the entire menu bar must itself be movable. So if MENU STATIC has been called, this command will have no effect. The first item in a menu bar can not be moved, because this would move the entire line. Furthermore, if the last item in a menu bar is moved, the size of that bar will be permanently reduced.

This problem can be overcome either by setting the last item into place with a MENU ITEM STATIC command, or by enclosing the whole menu bar with a rectangular box, like this:

X> Menu$(1 ,1)=,,,,"(Bar40,100)(Loc0,0)"

MENU SEPARATE
instruction: separate a list of menu items
Menu Separate level number
Menu Separate(single item parameters)

This command is used to separate all the items in the numbered level of the menu. Each item will then be treated independently. If no background string has been defined, every item is offset from the preceding item by two pixels, creating a stepped effect, which can be removed by editing from the Menu utility.

By specifying the parameters of a single item after the MENU SEPARATE command, a menu bar can be split at any chosen point. Once an item has been separated it can be affected by the MENU MOVABLE command instead of the ITEM instructions.

MENU LINK
instruction: link a list of menu items
Menu Link level number
Menu Link(single item parameters)

This is the exact opposite of MENU SEPARATE, and is used to link one or more items together.

X MENU
function: return the graphical x-coordinate of a menu item
x=X Menu(single item parameters)

The X MENU function allows you to get the position of a menu item, relative to the previous option on screen. This information can be used to set up very powerful menus.

Y MENU
function: return the graphical y-coordinate of a menu item
y=Y Menu(single item parameters)

Back    Next
06.05.10