EVENT_VAL_CHANGED
Description
LabWindows/CVI generates and sends an EVENT_VAL_CHANGED event continuously while a user performs an ongoing action that results in the value of a control changing. Examples of these actions are operating the up/down arrows of a numeric control, a ring control, or a table cell; holding the left mouse button down while selecting different items of a list box control; and dragging a graph control cursor.
This event is not swallowable.
Applies To
Binary switches, color numerics, graphs, LEDs, list boxes, numeric slides, numerics, picture buttons, picture rings, radio buttons, ring slides, rings, strings, tables, text boxes, text buttons, toggle buttons, and trees
Event Data Parameters
User Interface Object | Action | Event Data Values |
---|---|---|
Tables (events calling the control callback function) | All table event value change actions | eventData1 = Row of cell where event was generated. If the event affected multiple cells, such as when you sort or paste a range of cells, eventData1 is set to 0. eventData2 = Column of cell where event was generated. If the event affected multiple cells, such as when you sort or paste a range of cells, eventData2 is set to 0. |
Trees (events calling the control callback function) | Changing the active item | eventData1 = ACTIVE_ITEM_CHANGE eventData2 = oldItemIndex |
Label-changing keypresses | eventData1 = LABEL_CHANGE eventData2 = keyPressed | |
Graphs (events calling the control callback function) | All graph event value change actions | eventData1 = The index of the cursor or the annotation, depending on which one the user moved eventData2 = VAL_CURSOR or VAL_ANNOTATION, as appropriate to eventData1 |
LabWindows/CVI Compatibility
LabWindows/CVI 3.0 and later