Submenus
The following example illustrates the use of a submenu to amplify the Help activate section of the previous example:
## activate menuitem "Help"
## {
## submenu
## activate menuitem "Application"
## {
provide help about current application
## }
## activate menuitem "Form"
## {
provide help about current form
## }
## activate menuitem "MenuOperations"
## {
provide help about current menu operations
## }
## }
When the user selects the Help menu operation, this submenu replaces the current menu line:
Application Form MenuOperations
When the user selects one of the submenu operations, the statements in its activate section are executed. The original menu line then returns.