Menu_Invoke()

Examples


The Menu_Invoke() function causes a menu item to be invoked, just as if it had been selected by the user.

Syntax

Menu_Invoke(action)

Parameters

action An integer that specifies the action to perform. Use one of the following constants:

[spacer]

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


Return value

A boolean indicating whether the menu item was invoked. True indicates it was invoked, while false indicates it was not.

Comments

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.


Documentation Feedback