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_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_COLLAPSED(id, func) | The item has been collapsed. |
EVT_TREE_ITEM_COLLAPSING(id, func) | The item is being collapsed. This can be prevented by calling Veto(). |
EVT_TREE_ITEM_EXPANDED(id, func) | The item has been expanded. |
EVT_TREE_ITEM_EXPANDING(id, func) | The item 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::GetCode
wxTreeEvent::GetItem
wxTreeEvent::GetKeyEvent
wxTreeEvent::GetLabel
wxTreeEvent::GetOldItem
wxTreeEvent::GetPoint()
wxTreeEvent(WXTYPE commandType = 0, int id = 0)
Constructor.
int GetCode() const
Returns the key code if the event was is a key event. Use GetKeyEvent to get the values of the modifier keys for this event (i.e. Shift or Ctrl).
wxTreeItemId GetItem() const
Returns he item (valid for all events).
const wxKeyEvent& GetKeyEvent() const
Returns the key event for EVT_TREE_KEY_DOWN events.
const wxString& GetLabel() const
Returns the label if the event was a begin or end edit label event.
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.