Contents Up Previous Next

wxTreeEvent

A tree event holds information about events associated with wxTreeCtrl objects.

Derived from

wxCommandEvent
wxEvent
wxObject

Include files

<wx/treectrl.h>

Event table macros

To process input from a tree control, use these event handler macros to direct input to member functions that take a wxTreeEvent argument.

EVT_TREE_BEGIN_DRAG(id, func) Begin dragging with the left mouse button.
EVT_TREE_BEGIN_RDRAG(id, func) Begin dragging with the right mouse button.
EVT_TREE_BEGIN_LABEL_EDIT(id, func) Begin editing a label.
EVT_TREE_END_LABEL_EDIT(id, func) Finish editing a label.
EVT_TREE_DELETE_ITEM(id, func) Delete an item.
EVT_TREE_GET_INFO(id, func) Request information from the application.
EVT_TREE_SET_INFO(id, func) Information is being supplied.
EVT_TREE_ITEM_EXPANDED(id, func) Parent has been expanded.
EVT_TREE_ITEM_EXPANDING(id, func) Parent is being expanded.
EVT_TREE_SEL_CHANGED(id, func) Selection has changed.
EVT_TREE_SEL_CHANGING(id, func) Selection is changing.
EVT_TREE_KEY_DOWN(id, func) A key has been pressed.
See also

wxTreeCtrl

Members

wxTreeEvent::wxTreeEvent
wxTreeEvent::m_code
wxTreeEvent::m_itemIndex
wxTreeEvent::m_oldItem
wxTreeEvent::m_pointDrag


wxTreeEvent::wxTreeEvent

wxTreeEvent(WXTYPE commandType = 0, int id = 0)

Constructor.


wxTreeEvent::m_code

int m_code

Key code if the event is a keypress event.


wxTreeEvent::m_itemIndex

wxTreeItem m_item

The item.


wxTreeEvent::m_oldItem

long m_oldItem

The old item index.


wxTreeEvent::m_pointDrag

wxPoint m_pointDrag

The position of the mouse pointer if the event is a drag event.