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