This standard runtime function displays or “pops up” one of the pulldown menus as an isolated menu, that is, without the menu bar. The popup menu looks and works just like the pulldown menu, including enabled, disabled, and checked options, accelerators, and mnemonics. Commands are chosen in the same way as from the pulldown menu.
The popup menu is modal. You must make a choice or cancel the menu with the pulldown menu Cancel button or by clicking the mouse outside the border of the menu. If a command is not selected, none of the event type conditions reported in RMPANELS.WS is set. The popup menu does not affect the setting of RMP--LAST-FIELD, RMP--NEXT-FIELD, or any of the other event parameters.
RMP--COMMAND-NAME must be set to the name of one of the commands on the pulldown menu for this panel.
RMP--PANEL-LINE can be set as follows:
|Display the pop-up menu on the same line on which it would be displayed if selected from the pulldown menu
|Center the pop-up menu vertically on the screen
Any other value indicates a specific line on which the pop-up menu should be displayed.
RMP--PANEL-POS may be set as follows:
|Display the pop-up menu on the same column on which it would be displayed if selected from the pulldown menu
|Center the pop-up menu horizontally on the screen
Any other value indicates a specific column on which the pop-up menu should be displayed.
|The function executed successfully.
|The panel is not in this library
|The library does not exist.
|The panel is not displayed.
|A COBOL input/output error was encountered on the panel library during execution of this function. To determine the exact nature of the I/O error, use the C$RERR subprogram.
|A window error has occurred.
|The menu command name is invalid.
|There is no pulldown menu on this panel.