Contents Up Previous Next

wxEvent

An event is a structure holding information about an event passed to a callback or member function. wxEvent used to be a multipurpose event object, and is an abstract base class for other event classes (see below).

For more information about events, see the Event handling overview.

wxPerl note: In wxPerl custom event classes should be derived from Wx::PlEvent and Wx::PlCommandEvent.

Derived from

wxObject

Include files

<wx/event.h>

See also

wxCommandEvent, wxMouseEvent

Members

wxEvent::wxEvent
wxEvent::m_propagationLevel
wxEvent::Clone
wxEvent::GetEventObject
wxEvent::GetEventType
wxEvent::GetId
wxEvent::GetSkipped
wxEvent::GetTimestamp
wxEvent::IsCommandEvent
wxEvent::ResumePropagation
wxEvent::Nustar rootroot wxTreeEvent

Contents Up Previous Next

wxTreeEvent

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) The user has started dragging an item with the left mouse button. The event handler must call wxTreeEvent::Allow() for the drag operation to continue.
EVT_TREE_BEGIN_RDRAG(id, func) The user has started dragging an item with the right mouse button. The event handler must call wxTreeEvent::Allow() for the drag operation to continue.
EVT_TREE_BEGIN_LABEL_EDIT(id, func) Begin editing a label. This can be prevented by calling Veto().
EVT_TREE_END_DRAG(id, func) The user has released the mouse after dragging an item.
EVT_TREE_END_LABEL_EDIT(id, func) The user has finished editing a label. This can be prevented by calling Veto().
EVT_TREE_DELETE_ITEM(id, func) A tree item has been deleted.
EVT_TREE_ITEM_ACTIVATED(id, func) An item has been activated (e.g. double clicked).
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_ITEM_RIGHT_CLICK(id, func) The user has clicked the item with the right mouse button.
EVT_TREE_ITEM_MIDDLE_CLICK(id, func) The user has clicked the item with the middle mouse button.
EVT_TREE_KEY_DOWN(id, func) A key has been pressed.
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)