| Did you know ... | Search Documentation: |
| Menu layout |
A menu consists of a label and a list of items. The label is placed
in a box described by the area menu<-label_area.
The items are placed in a two-dimensional array, each in its own box.
These item boxes all have the same size (menu<-item_size).
The top-left-corner of the first item is at menu<-item_offset.
If menu<->layout
equals horizontal, the items are placed left-to-right. If menu<->layout
equals vertical, the items are placed top-to-bottom. The items are
spread over menu<-columns
columns. The following illustrates the placement of a menu with
horizontal layout, 2 columns and 5 items:
label item-1 item-2 item-3
item-4 item-5
Various parameters influence the final layout. menu<->gap
defines the horizontal and vertical space between the items. graphical<->pen
defines the thickness of the lines for the boxes drawn around the items.
menu<->border
defines the white space between the item and the box around it.
->initialise -message -columns ->kind -auto_value_align