Object Types: Menus, numerics, color numerics, numeric slides, strings, text boxes, command buttons, picture buttons, toggle buttons, text buttons, radio buttons, LEDs, binary switches, rings, ring slides, picture rings, list boxes, graphs, tables, and trees.
Description: Commit events are generated when the user of the GUI actually commits to an operation such as making a menu selection or typing in a number and pressing <Enter>. In addition to sending to the callback function associated with the object generating the event, LabWindows/CVI also places commit events in the GetUserEvent queue, unless you swallow the event.
Event Data Parameters:
For menu selection events calling the main callback: | ||
eventData1 | = | panel for menu selections |
eventData2 | = | callbackData for menu item (cast to an integer) |
For table events calling the control callback: | ||
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. |
For tree events calling the control callback: | ||
Mark state change: | ||
eventData1 | = | MARK_STATE_CHANGE |
eventData2 | = | not used |
Finishing label changes: | ||
eventData1 | = | LABEL_CHANGE |
eventData2 | = | not used |
Double-click: | ||
eventData1 | = | LEFT_DOUBLE_CLICK |
eventData2 | = | not used |
Return key: | ||
eventData1 | = | ENTER_KEY | eventData2 | = | not used |