The Menu_Invoke() function causes a menu item to be invoked, just as if it had been selected by the user.
Menu_Invoke(action)
• action – An integer that specifies the action to perform. Use one of the following constants:
Constant |
Description |
---|---|
MENU_ACTION_PRINT |
Print menu item |
MENU_ACTION_PRINTSETUP |
Print Setup menu item |
MENU_ACTION_HELPCONTENTS |
Help Contents menu item |
MENU_ACTION_HELPSEARCH |
Help Search menu item |
MENU_ACTION_HELPFIELD |
Field Help menu item |
MENU_ACTION_HELPWINDOW |
Window Help menu item |
MENU_ACTION_HELPABOUT |
About menu item |
MENU_ACTION_HELPONHELP |
Help on Help menu item |
MENU_ACTION_SHOWREQUIRED |
Show Required menu item |
MENU_ACTION_UNDO |
Undo menu item |
MENU_ACTION_CUT |
Cut menu item |
MENU_ACTION_COPY |
Copy menu item |
MENU_ACTION_PASTE |
Paste menu item |
MENU_ACTION_CLEAR |
Clear menu item |
MENU_ACTION_SELECTALL |
Select All menu item |
MENU_ACTION_DELETEROW |
Delete Row menu item |
MENU_ACTION_INSERTROW |
Insert Row menu item |
A boolean indicating whether the menu item was invoked. True indicates it was invoked, while false indicates it was not.
The menu item to be invoked must be in the set of menu items for the application. You can’t invoke a menu item that isn’t included in a menu. Menu items will be invoked, regardless of whether they are enabled or disabled in the menu.