| Dialog instructions / Ring menus (MENU) | |
The MENU instruction defines a set of options the end user can select to trigger actions in a program.
MENU [title]
[ ATTRIBUTES ( menu-attribute [,...] ) ]
[ BEFORE MENU
menu-statement
[...]
]
menu-option
[...]
END MENU
where menu-option is one of:
{ COMMAND option-name
[option-comment] [ HELP help-number ]
menu-statement
[...]
| COMMAND KEY ( key-name ) option-name
[option-comment] [ HELP help-number ]
menu-statement
[...]
| COMMAND KEY ( key-name )
menu-statement
[...]
| ON ACTION action-name
[ ATTRIBUTES ( action-attributes-menu ) ]
menu-statement
[...]
| ON IDLE seconds
menu-statement
[...]
| ON TIMER seconds
menu-statement
[...]
}
{ TEXT = string
| COMMENT = string
| IMAGE = string
| ACCELERATOR = string
| DEFAULTVIEW = { YES | NO | AUTO }
| CONTEXTMENU = { YES | NO | AUTO }
| DISCLOSUREINDICATOR
[,...] }
where menu-statement is:
{ statement
| CONTINUE MENU
| EXIT MENU
| NEXT OPTION option
| SHOW OPTION { ALL | option [,...] }
| HIDE OPTION { ALL | option [,...] }
}
where menu-attribute is:
{ STYLE = { "default" | "popup" | "dialog" }
| COMMENT = "string"
| IMAGE = "string"
}