h1(#wxtreeevent). Wx::TreeEvent A tree event holds information about events associated with TreeCtrl objects. h2. Derived from "NotifyEvent":notifyevent.html "CommandEvent":commandevent.html "Event":event.html "Object":object.html h2. Event table macros To process input from a tree control, use these methods to set up event handler blocks that take a TreeEvent argument. |*evt_tree_begin_drag(id) { | event | ... }*|The user has started dragging an item with the left mouse button. The event handler must call *TreeEvent::Allow()* for the drag operation to continue.| |*evt_tree_begin_rdrag(id) { | event | ... }*|The user has started dragging an item with the right mouse button. The event handler must call *TreeEvent::Allow()* for the drag operation to continue.| |*evt_tree_begin_label_edit(id) { | event | ... }*|Begin editing a label. This can be prevented by calling "Veto()":notifyeventveto.html.| |*evt_tree_end_drag(id) { | event | ... }*|The user has released the mouse after dragging an item.| |*evt_tree_end_label_edit(id) { | event | ... }*|The user has finished editing a label. This can be prevented by calling "Veto()":notifyeventveto.html.| |*evt_tree_delete_item(id) { | event | ... }*|A tree item has been deleted.| |*evt_tree_item_activated(id) { | event | ... }*|An item has been activated (e.g. double clicked).| |*evt_tree_item_collapsed(id) { | event | ... }*|The item has been collapsed.| |*evt_tree_item_collapsing(id) { | event | ... }*|The item is being collapsed. This can be prevented by calling "Veto()":notifyeventveto.html.| |*evt_tree_item_expanded(id) { | event | ... }*|The item has been expanded.| |*evt_tree_item_expanding(id) { | event | ... }*|The item is being expanded. This can be prevented by calling "Veto()":notifyeventveto.html.| |*evt_tree_item_right_click(id) { | event | ... }*|The user has clicked the item with the right mouse button.| |*evt_tree_item_middle_click(id) { | event | ... }*|The user has clicked the item with the middle mouse button.| |*evt_tree_key_down(id) { | event | ... }*|A key has been pressed.| |*evt_tree_sel_changed(id) { | event | ... }*|Selection has changed.| |*evt_tree_sel_changing(id) { | event | ... }*|Selection is changing. This can be prevented by calling "Veto()":notifyeventveto.html.| |*evt_tree_key_down(id) { | event | ... }*|A key has been pressed.| |*evt_tree_item_gettooltip(id) { | event | ... }*|The opportunity to set the item tooltipis being given to the application (call TreeEvent::SetToolTip). Windows only.| |*evt_tree_item_menu(id) { | event | ... }*|The context menu for the selected item has been requested, either by a right click or by using the menu key.| |*evt_tree_state_image_click(id) { | event | ... }*|The state image has been clicked. Windows only.| h2. See also "TreeCtrl":treectrl.html