# EVENT_SELECTION_CHANGE

Object Types: Trees and tables.

Description:
Tree Controls—EVENT_SELECTION_CHANGE events are sent to the callback function associated with the tree control when the user makes a selection change on a tree item. This event is sent only when the tree is set to multiple selection mode.
Table Controls—EVENT_SELECTION_CHANGE events are sent to the callback function associated with the table control when the cell selection changes as a result of an interactive action. This event is not swallowable.

Event Data Parameters:

For tree events:

eventData1 = 1 (selection toggle on)
eventData2 = itemIndex

eventData1 = 0 (selection toggle off)
eventData2 = itemIndex

For table events:

eventData1 = 0 (not used)
eventData2 = 0 (not used)

This event is swallowable for tree controls only. Return 1 to swallow EVENT_SELECTION_CHANGE.