Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Menu Activation? Event (Not in Base Package)

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

Event for VI.

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

NameDescription
SourceSource of the event.

0LabVIEW UI
1ActiveX
2.NET
25User Event
nother
TypeType of event that occurred, such as Mouse Down, Value Change, Timeout, and so on.

TimeValue of the millisecond timer when the event occurred.

VIRefReference to the VI on which this event occurred.

MenuRefReference 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.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit