Ring menus (MENU) / Using ring menus |
MENU "Question" ATTRIBUTES ( STYLE="dialog", COMMENT="Do you want to commit your changes?" )
When the STYLE instruction attribute is set to 'default' or when you do not specify the menu type, the runtime system generates a default decoration as a set of buttons in a specific area of the current window.
When the STYLE attribute is set to 'dialog', the menu options appear as buttons at the bottom in a temporary modal window, in which you can define the message and the icon with the COMMENT and IMAGE attributes.
When the STYLE is set to 'popup', the menu appears as a popup menu (contextual menu).
If the menu is a "dialog" or "popup", the dialog is automatically exited after any action clause such as ON ACTION, COMMAND or ON IDLE.