86f975a858
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
79 lines
2.6 KiB
TeX
79 lines
2.6 KiB
TeX
\section{\class{wxTreeEvent}}\label{wxtreeevent}
|
|
|
|
A tree event holds information about events associated with wxTreeCtrl objects.
|
|
|
|
\wxheading{Derived from}
|
|
|
|
\helpref{wxNotifyEvent}{wxnotifyevent}\\
|
|
\helpref{wxCommandEvent}{wxcommandevent}\\
|
|
\helpref{wxEvent}{wxevent}\\
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
\wxheading{Include files}
|
|
|
|
<wx/treectrl.h>
|
|
|
|
\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.}
|
|
\twocolitem{{\bf EVT\_TREE\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label.}
|
|
\twocolitem{{\bf EVT\_TREE\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label.}
|
|
\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.}
|
|
\twocolitem{{\bf EVT\_TREE\_ITEM\_EXPANDING(id, func)}}{Parent is being expanded.}
|
|
\twocolitem{{\bf EVT\_TREE\_SEL\_CHANGED(id, func)}}{Selection has changed.}
|
|
\twocolitem{{\bf EVT\_TREE\_SEL\_CHANGING(id, func)}}{Selection is changing.}
|
|
\twocolitem{{\bf EVT\_TREE\_KEY\_DOWN(id, func)}}{A key has been pressed.}
|
|
\end{twocollist}%
|
|
|
|
For the EVT\_TREE\_BEGIN\_EDIT, EVT\_TREE\_END\_LABEL\_EDIT,
|
|
EVT\_TREE\_ITEM\_EXPANDING and EVT\_TREE\_SEL\_CHANGING events you may call
|
|
\helpref{Veto()}{wxnotifyeventveto} to prevent the given operation from
|
|
happening except for EVT\_TREE\_END\_LABEL\_EDIT means that the items label
|
|
will not be changed.
|
|
|
|
\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}
|
|
|
|
The item (valid for all events).
|
|
|
|
\membersection{wxTreeEvent::m\_oldItem}
|
|
|
|
\member{long}{m\_oldItem}
|
|
|
|
The old item index (valid for EVT\_TREE\_ITEM\_CHANGING and CHANGED events)
|
|
|
|
\membersection{wxTreeEvent::m\_pointDrag}
|
|
|
|
\member{wxPoint}{m\_pointDrag}
|
|
|
|
The position of the mouse pointer if the event is a drag event.
|
|
|