1998-05-20 10:25:30 -04:00
\section { \class { wxTreeEvent} } \label { wxtreeevent}
A tree event holds information about events associated with wxTreeCtrl objects.
\wxheading { Derived from}
1999-07-26 06:46:55 -04:00
\helpref { wxNotifyEvent} { wxnotifyevent} \\
1998-05-20 10:25:30 -04:00
\helpref { wxCommandEvent} { wxcommandevent} \\
\helpref { wxEvent} { wxevent} \\
\helpref { wxObject} { wxobject}
1999-02-15 15:41:29 -05:00
\wxheading { Include files}
<wx/treectrl.h>
1998-05-20 10:25:30 -04:00
\wxheading { 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.
\twocolwidtha { 7cm}
\begin { twocollist} \itemsep =0pt
\twocolitem { { \bf EVT\_ TREE\_ BEGIN\_ DRAG(id, func)} } { Begin dragging with the left mouse button.}
\twocolitem { { \bf EVT\_ TREE\_ BEGIN\_ RDRAG(id, func)} } { Begin dragging with the right mouse button.}
1999-07-26 10:28:25 -04:00
\twocolitem { { \bf EVT\_ TREE\_ BEGIN\_ LABEL\_ EDIT(id, func)} } { Begin editing a label. This can be prevented by calling \helpref { Veto()} { wxnotifyeventveto} .}
\twocolitem { { \bf EVT\_ TREE\_ END\_ LABEL\_ EDIT(id, func)} } { Finish editing a label. This can be prevented by calling \helpref { Veto()} { wxnotifyeventveto} .}
1998-05-20 10:25:30 -04:00
\twocolitem { { \bf EVT\_ TREE\_ DELETE\_ ITEM(id, func)} } { Delete an item.}
\twocolitem { { \bf EVT\_ TREE\_ GET\_ INFO(id, func)} } { Request information from the application.}
\twocolitem { { \bf EVT\_ TREE\_ SET\_ INFO(id, func)} } { Information is being supplied.}
\twocolitem { { \bf EVT\_ TREE\_ ITEM\_ EXPANDED(id, func)} } { Parent has been expanded.}
1999-07-26 10:28:25 -04:00
\twocolitem { { \bf EVT\_ TREE\_ ITEM\_ EXPANDING(id, func)} } { Parent is being expanded. This can be prevented by calling \helpref { Veto()} { wxnotifyeventveto} .}
1998-05-20 10:25:30 -04:00
\twocolitem { { \bf EVT\_ TREE\_ SEL\_ CHANGED(id, func)} } { Selection has changed.}
1999-07-26 10:28:25 -04:00
\twocolitem { { \bf EVT\_ TREE\_ SEL\_ CHANGING(id, func)} } { Selection is changing. This can be prevented by calling \helpref { Veto()} { wxnotifyeventveto} .}
1998-05-20 10:25:30 -04:00
\twocolitem { { \bf EVT\_ TREE\_ KEY\_ DOWN(id, func)} } { A key has been pressed.}
\end { twocollist} %
\wxheading { See also}
\helpref { wxTreeCtrl} { wxtreectrl}
\latexignore { \rtfignore { \wxheading { Members} } }
\membersection { wxTreeEvent::wxTreeEvent}
\func { } { wxTreeEvent} { \param { WXTYPE } { commandType = 0} , \param { int } { id = 0} }
Constructor.
\membersection { wxTreeEvent::m\_ code}
\member { int} { m\_ code}
Key code if the event is a keypress event.
\membersection { wxTreeEvent::m\_ itemIndex}
\member { wxTreeItem} { m\_ item}
1999-07-26 06:46:55 -04:00
The item (valid for all events).
1998-05-20 10:25:30 -04:00
\membersection { wxTreeEvent::m\_ oldItem}
\member { long} { m\_ oldItem}
1999-07-26 06:46:55 -04:00
The old item index (valid for EVT\_ TREE\_ ITEM\_ CHANGING and CHANGED events)
1998-05-20 10:25:30 -04:00
\membersection { wxTreeEvent::m\_ pointDrag}
\member { wxPoint} { m\_ pointDrag}
The position of the mouse pointer if the event is a drag event.