A tree event holds information about events associated with wxTreeCtrl objects.
Derived from
wxNotifyEvent
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_END_DRAG(id, func) | Drag ended (drop). |
EVT_TREE_BEGIN_LABEL_EDIT(id, func) | Begin editing a label. This can be prevented by calling Veto(). |
EVT_TREE_END_LABEL_EDIT(id, func) | Finish editing a label. This can be prevented by calling Veto(). |
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. This can be prevented by calling Veto(). |
EVT_TREE_SEL_CHANGED(id, func) | Selection has changed. |
EVT_TREE_SEL_CHANGING(id, func) | Selection is changing. This can be prevented by calling Veto(). |
EVT_TREE_KEY_DOWN(id, func) | A key has been pressed. |
Members
wxTreeEvent::wxTreeEvent
wxTreeEvent::GetItem
wxTreeEvent::GetOldItem
wxTreeEvent::GetPoint()
wxTreeEvent::GetCode
wxTreeEvent::GetLabel
wxTreeEvent(WXTYPE commandType = 0, int id = 0)
Constructor.
wxTreeItemId GetItem() const
Returns he item (valid for all events).
wxTreeItemId GetOldItem() const
Returns the old item index (valid for EVT_TREE_ITEM_CHANGING and CHANGED events)
wxPoint GetPoint() const
Returns the position of the mouse pointer if the event is a drag event.
int GetCode() const
The key code if the event was is a key event.
const wxString& GetLabel() const
Returns the label if the event was a begin or end edit label event.