Dialog instructions / Ring menus (MENU) |
MENU "Sample" COMMAND "Say hello" DISPLAY "Hello, world!" COMMAND "Exit" EXIT MENU END MENU
A ring menu can only define a set of options for a given level of the program. You cannot define all menu options of your program in a single MENU instruction; you must implement nested menus.
The MENU instruction is mainly designed for text mode applications, displaying ring menus at the top of the screen. A typical TUI mode application starts with a global menu, defining general options to access subroutines, which in turn implement specific menus with database record handling options such as 'Append', 'Delete', 'Modify', and 'Search'. Ring menus can also be used in a GUI application, however, as this instruction does not handle form fields, other parts of the form are disabled during the menu dialog execution. In GUI applications, ring menus are typically used to open a modal window with Yes / No / Cancel options.