Programming Guide |
Invokes the current widget's popup menu
int sm_popup_at_cur(void);
- 0
MNERR_OK
: Success.
sm_popup_at_cur
invokes the popup menu installed for the field or screen, depending on which one has focus. This function lets users access popup menus via the keyboard. For example, the following control string assignment lets a user invoke a popup menu by pressing thePF1
key:PF1 = ^sm_popup_at_cur
sm_popup_at_cur
uses one of the following two algorithms for finding and displaying a popup menu:
- If a field has focus,
sm_popup_at_cur
displays the first menu that it finds from the following:
- The field's popup menu.
- The screen's popup menu.
- The menu installed for the screen's menu bar and toolbar.
- The application-level menu.
- If the screen has focus,
sm_popup_at_cur
displays the first menu that it finds from the following:
- The screen's popup menu.
- The menu installed for the screen's menu bar and toolbar.
- The application-level menu.