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

Shortcut Menu Activation? Event (Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Event for Control.

Generated when the user right-clicks a control to display the shortcut menu. The Shortcut Menu Activation? event is a filter event.

For a filter event, if you do not wire an element in the Event Filter Node that appears on the right-hand side of the event case, the default value of the element is the value output by the corresponding element in the Event Data Node on the left-hand side of the event case.

Example

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.
CtlRefReference to the control on which the event occurred.
MenuRefReference to the control shortcut menu that you can modify during this event. MenuRef is valid only during this event case.
CoordsCoordinates of the mouse at the location of the mouse click at the time of the event. Coordinates are relative to the pane's origin.
SubObjReference to the object on which the event occurred. For example, if the user right-clicks a cluster that contains several controls, the SubObj might be a control within the cluster. You might want to add menu items only if the user right-clicks certain controls within a cluster. You can check the value of SubObj.
Discard?Allows you to prevent LabVIEW from processing the event, bypassing the behavior normally triggered by that event. The default is FALSE.

Example

Refer to the Run-Time Shortcut Menus VI in the labview\examples\general\Run-TimeShortcutMenu.llb for an example of using the Shortcut Menu Activation? event.


Resources


 

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