Menu and menu item property clauses¶
Menu property clauses¶
At least one item must be defined for a menu.
menuitem item_id |
Item on the menu. |
style = flags |
Menu item property clauses¶
The remaining clauses are attached to each item, rather than to a menu as a whole. The clauses are applicable both to main menu items and to subitems, with some small differences. Unless such a distinction is made, the term ‘item’ in the clause descriptions should be taken to include both items and subitems.
A menu item must have a label, and should have either subitems or a select = function. Other clauses are optional.
menuitem = item_id |
Define a subitem. |
label = “text” |
Text for item label |
style = flags |
|
caption = “text”
caption_pen = integer
|
Text for help caption.
Pen for display of help caption.
See Menu item caption. |
menuline |
Horizontal line, creating a logical division between submenu items. |
accelerator = key_id |
|
select = func_id
help = func_id
|
Select function.
Help function.
|
Run time only |
|
[[window_id.]menu_id.]item_id->check = ON | OFF |
Check or uncheck an item. |
Run time read-only |
|
[[window_id.]menu_id.]item_id->selected = TRUE | FALSE |
Whether currently selected. |
[[window_id.]menu_id.]item_id->state & |
RELATED TOPICS |