]>
Commit | Line | Data |
---|---|---|
a660d684 KB |
1 | \section{\class{wxTreeEvent}}\label{wxtreeevent} |
2 | ||
3 | A tree event holds information about events associated with wxTreeCtrl objects. | |
4 | ||
5 | \wxheading{Derived from} | |
6 | ||
86f975a8 | 7 | \helpref{wxNotifyEvent}{wxnotifyevent}\\ |
a660d684 KB |
8 | \helpref{wxCommandEvent}{wxcommandevent}\\ |
9 | \helpref{wxEvent}{wxevent}\\ | |
10 | \helpref{wxObject}{wxobject} | |
11 | ||
954b8ae6 JS |
12 | \wxheading{Include files} |
13 | ||
14 | <wx/treectrl.h> | |
15 | ||
a660d684 KB |
16 | \wxheading{Event table macros} |
17 | ||
18 | To process input from a tree control, use these event handler macros to direct input to member | |
19 | functions that take a wxTreeEvent argument. | |
20 | ||
21 | \twocolwidtha{7cm} | |
22 | \begin{twocollist}\itemsep=0pt | |
23 | \twocolitem{{\bf EVT\_TREE\_BEGIN\_DRAG(id, func)}}{Begin dragging with the left mouse button.} | |
24 | \twocolitem{{\bf EVT\_TREE\_BEGIN\_RDRAG(id, func)}}{Begin dragging with the right mouse button.} | |
fd128b0c RR |
25 | \twocolitem{{\bf EVT\_TREE\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} |
26 | \twocolitem{{\bf EVT\_TREE\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} | |
a660d684 KB |
27 | \twocolitem{{\bf EVT\_TREE\_DELETE\_ITEM(id, func)}}{Delete an item.} |
28 | \twocolitem{{\bf EVT\_TREE\_GET\_INFO(id, func)}}{Request information from the application.} | |
29 | \twocolitem{{\bf EVT\_TREE\_SET\_INFO(id, func)}}{Information is being supplied.} | |
30 | \twocolitem{{\bf EVT\_TREE\_ITEM\_EXPANDED(id, func)}}{Parent has been expanded.} | |
fd128b0c | 31 | \twocolitem{{\bf EVT\_TREE\_ITEM\_EXPANDING(id, func)}}{Parent is being expanded. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} |
a660d684 | 32 | \twocolitem{{\bf EVT\_TREE\_SEL\_CHANGED(id, func)}}{Selection has changed.} |
fd128b0c | 33 | \twocolitem{{\bf EVT\_TREE\_SEL\_CHANGING(id, func)}}{Selection is changing. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} |
a660d684 KB |
34 | \twocolitem{{\bf EVT\_TREE\_KEY\_DOWN(id, func)}}{A key has been pressed.} |
35 | \end{twocollist}% | |
36 | ||
37 | \wxheading{See also} | |
38 | ||
39 | \helpref{wxTreeCtrl}{wxtreectrl} | |
40 | ||
41 | \latexignore{\rtfignore{\wxheading{Members}}} | |
42 | ||
43 | \membersection{wxTreeEvent::wxTreeEvent} | |
44 | ||
45 | \func{}{wxTreeEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}} | |
46 | ||
47 | Constructor. | |
48 | ||
49 | \membersection{wxTreeEvent::m\_code} | |
50 | ||
51 | \member{int}{m\_code} | |
52 | ||
53 | Key code if the event is a keypress event. | |
54 | ||
55 | \membersection{wxTreeEvent::m\_itemIndex} | |
56 | ||
57 | \member{wxTreeItem}{m\_item} | |
58 | ||
86f975a8 | 59 | The item (valid for all events). |
a660d684 KB |
60 | |
61 | \membersection{wxTreeEvent::m\_oldItem} | |
62 | ||
63 | \member{long}{m\_oldItem} | |
64 | ||
86f975a8 | 65 | The old item index (valid for EVT\_TREE\_ITEM\_CHANGING and CHANGED events) |
a660d684 KB |
66 | |
67 | \membersection{wxTreeEvent::m\_pointDrag} | |
68 | ||
69 | \member{wxPoint}{m\_pointDrag} | |
70 | ||
71 | The position of the mouse pointer if the event is a drag event. | |
72 |