1998-05-20 14:25:30 +00:00
\section { \class { wxTreeEvent} } \label { wxtreeevent}
A tree event holds information about events associated with wxTreeCtrl objects.
\wxheading { Derived from}
1999-07-26 10:46:55 +00:00
\helpref { wxNotifyEvent} { wxnotifyevent} \\
1998-05-20 14:25:30 +00:00
\helpref { wxCommandEvent} { wxcommandevent} \\
\helpref { wxEvent} { wxevent} \\
\helpref { wxObject} { wxobject}
1999-02-15 20:41:29 +00:00
\wxheading { Include files}
<wx/treectrl.h>
1998-05-20 14:25:30 +00: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 14:28:25 +00: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 14:25:30 +00: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.}
2001-02-08 15:26:38 +00:00
\twocolitem { { \bf EVT\_ TREE\_ ITEM\_ COLLAPSED(id, func)} } { The item has been collapsed.}
\twocolitem { { \bf EVT\_ TREE\_ ITEM\_ COLLAPSING(id, func)} } { The item is being collapsed. This can be prevented by calling \helpref { Veto()} { wxnotifyeventveto} .}
\twocolitem { { \bf EVT\_ TREE\_ ITEM\_ EXPANDED(id, func)} } { The item has been expanded.}
\twocolitem { { \bf EVT\_ TREE\_ ITEM\_ EXPANDING(id, func)} } { The item is being expanded. This can be prevented by calling \helpref { Veto()} { wxnotifyeventveto} .}
1998-05-20 14:25:30 +00:00
\twocolitem { { \bf EVT\_ TREE\_ SEL\_ CHANGED(id, func)} } { Selection has changed.}
1999-07-26 14:28:25 +00:00
\twocolitem { { \bf EVT\_ TREE\_ SEL\_ CHANGING(id, func)} } { Selection is changing. This can be prevented by calling \helpref { Veto()} { wxnotifyeventveto} .}
1998-05-20 14:25:30 +00: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.
2001-09-24 16:39:49 +00:00
\membersection { wxTreeEvent::GetCode}
\constfunc { int} { GetCode} { }
Returns the key code if the event was is a key event. Use
\helpref { GetKeyEvent} { wxtreeeventgetkeyevent} to get the values of the
modifier keys for this event (i.e. Shift or Ctrl).
1999-08-15 18:35:03 +00:00
\membersection { wxTreeEvent::GetItem}
1998-05-20 14:25:30 +00:00
1999-08-15 18:35:03 +00:00
\constfunc { wxTreeItemId} { GetItem} { }
1998-05-20 14:25:30 +00:00
1999-08-15 18:35:03 +00:00
Returns he item (valid for all events).
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
\membersection { wxTreeEvent::GetKeyEvent} \label { wxtreeeventgetkeyevent}
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
\constfunc { const wxKeyEvent\& } { GetKeyEvent} { }
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
Returns the key event for { \tt EVT\_ TREE\_ KEY\_ DOWN} events.
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
\membersection { wxTreeEvent::GetLabel}
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
\constfunc { const wxString\& } { GetLabel} { }
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
Returns the label if the event was a begin or end edit label event.
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
\membersection { wxTreeEvent::GetOldItem}
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
\constfunc { wxTreeItemId} { GetOldItem} { }
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
Returns the old item index (valid for EVT\_ TREE\_ ITEM\_ CHANGING and CHANGED events)
1998-05-20 14:25:30 +00:00
2001-09-24 16:39:49 +00:00
\membersection { wxTreeEvent::GetPoint()}
1999-08-15 18:35:03 +00:00
2001-09-24 16:39:49 +00:00
\constfunc { wxPoint} { GetPoint} { }
1999-08-15 18:35:03 +00:00
2001-09-24 16:39:49 +00:00
Returns the position of the mouse pointer if the event is a drag event.
1999-09-05 19:42:03 +00:00