LabWindows/CVI

Table of Contents

EVENT_CTRL_MENU

Description

When a user displays the context menu of a control, LabWindows/CVI generates an EVENT_CTRL_MENU event and sends the event to the callback function associated with the control.

Send the mouse coordinates in eventData1 and eventData2 to the following functions to get the cell, ID, or index location of the mouse-click.

  • GetIndexFromPoint—Use for trees. Gets the tree index, cell, and area of the tree that corresponds to a coordinate.
  • GetTableCellFromPoint—Use for tables. Gets the table cell.
  • GetLegendItemFromPoint—Use for graphs and strip charts. Gets the trace index or plot handle for graphs or strip charts.

This event is swallowable. Return 1 to swallow EVENT_CTRL_MENU.

Applies To

Graphs, strip charts, tables, and trees

Event Data Parameters:

Action Event Data Values
Right-clicking to display menu eventData1 = Mouse vertical position

eventData2 = Mouse horizontal position
Clicking menu key to display menu eventData1 = VAL_INVALID_COORDINATE

eventData2 = VAL_INVALID_COORDINATE

LabWindows/CVI Compatibility

LabWindows/CVI 2010 and later

Log in to get a better experience