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.
1999-08-15 14:35:03 -04:00
\membersection { wxTreeEvent::GetItem}
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\constfunc { wxTreeItemId} { GetItem} { }
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
Returns he item (valid for all events).
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\membersection { wxTreeEvent::GetOldItem}
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\constfunc { wxTreeItemId} { GetOldItem} { }
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
Returns the old item index (valid for EVT\_ TREE\_ ITEM\_ CHANGING and CHANGED events)
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\membersection { wxTreeEvent::GetPoint()}
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\constfunc { wxPoint} { GetPoint} { }
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
Returns the position of the mouse pointer if the event is a drag event.
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\membersection { wxTreeEvent::GetCode}
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\constfunc { int} { GetCode} { }
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
The key code if the event was is a key event.
1998-05-20 10:25:30 -04:00
1999-08-15 14:35:03 -04:00
\membersection { wxTreeEvent::GetLabel}
\constfunc { const wxString& } { GetLabel} { }
Returns the label if the event was a begin or end edit label event.
1999-09-05 15:42:03 -04:00