# EVENT_COLLAPSE

Object Types: Trees.

Description: Collapse events are sent to the callback function associated with the tree control when the user collapses a tree item. To collapse a tree, a user can click the minus sign next to the tree item, press the left arrow, and right-click and select Collapse All or Collapse Subtree.

Event Data Parameters:

Right-clicking and selecting Collapse All: eventData1 = VAL_ALL
eventData2 = 0

Right-clicking and selecting Collapse Subtree: eventData1 = VAL_DESCENDENT
eventData2 = itemIndex

Clicking the minus sign or pressing the left arrow: eventData1 = 0
eventData2 = itemIndex

This event is swallowable. Return 1 to swallow EVENT_COLLAPSE.