Menu Activation? Event
Installed With: Full Development System
Class: VI Events
Type: Filter
Generated when the user opens a menu using the mouse or keyboard shortcut, for example, <Alt-F> to open the File menu. Also generated when the user presses shortcut keys to activate a menu item, for example, <Ctrl-C> to copy text.
You can generate this event using any menu shortcut key. However, the movement and editing keys, such as Insert, Delete, Home, End, Page Up, Page Down, and the arrow keys do not generate this event.
The shortcut key does not have to exist in the menu in order to generate this event. That is, all <F> keys and any <Ctrl-n> key generates the event.
LabVIEW generates this event regardless of whether the menu item being selected with the shortcut key is disabled or enabled.
Note This event does not return which menu on the menu bar the user opens. |
Event Data Fields
Name | Description | ||
---|---|---|---|
Source | Source of the event. LabVIEW UI refers to any built-in user interface event.
| ||
Type | Type of event that occurred, such as Mouse Down, Value Change, Timeout, and so on. | ||
Time | Value of the millisecond timer when the event occurred. | ||
VIRef | Reference to the VI on which this event occurred. | ||
MenuRef | Reference to the LabVIEW menu from which an item was selected. | ||
Discard? | Allows you to prevent LabVIEW from processing the event, bypassing the behavior normally triggered by that event. The default is FALSE. |