| options |
type |
sequence is arbitrary |
|
TXT |
Required ( ⇒ same as menu bar in WINDOW) -
The
Menu keyword
Menu=..., e.g. - CHARACTER menulist = "item1;item2;;item4...;"
- POP(Menu=menulist)
-
The callback subroutine
of the same name , e.g. - SUBROUTINE menulist
- ! here goes the callback action
- END
- the last non-blank character in the menu string defines the separator (here ";")
-
two separators in a row (empty item) define a horizontal bar
-
MenuTypes
may precede the item text, e.g. ...,6 checked+new column,...
|
|
vec |
state and arrangement of menu items - 0 = enabled (default)
-
1 = grayed
-
2 = checked
-
4 = start new column
-
8 = start new column + bar
|
|
num |
response to mouse click - 0 immediate popup on script call (default)
-
1 left mouse button
-
2 right mouse button
-
4 horizontal center align
-
8 right align
-
16 vertical center align
-
32 bottom align
-
64 vertical align priority
|
|
num |
x=123 ! popup pixel x address. For mouse generated popups, pixel coordinates are returned in the optional arguments to X= and Y= |
|
num |
y=yPxl ! popup pixel y address. |
|
TXT |
seltxt=selected to copy the menu item text to the variable "selected" |
|
num |
owner=child_window_handle for popups associated with child windows |