File: wx252.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (181 lines) | stat: -rw-r--r-- 3,653 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<HTML>
<head><title>wxTreeEvent</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxtreeevent"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx251.htm#wxtreeitemdata"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx253.htm#wxupdateuievent"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxTreeEvent</H2>
<P>
A tree event holds information about events associated with wxTreeCtrl objects.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx52.htm#wxcommandevent">wxCommandEvent</A><BR>

<A HREF="wx84.htm#wxevent">wxEvent</A><BR>

<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/treectrl.h&gt;<P>
<B><FONT COLOR="#FF0000">Event table macros</FONT></B><P>
To process input from a tree control, use these event handler macros to direct input to member
functions that take a wxTreeEvent argument.<P>


<TABLE>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_BEGIN_DRAG(id, func)</B>
</TD>

<TD VALIGN=TOP>
Begin dragging with the left mouse button.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_BEGIN_RDRAG(id, func)</B>
</TD>

<TD VALIGN=TOP>
Begin dragging with the right mouse button.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_BEGIN_LABEL_EDIT(id, func)</B>
</TD>

<TD VALIGN=TOP>
Begin editing a label.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_END_LABEL_EDIT(id, func)</B>
</TD>

<TD VALIGN=TOP>
Finish editing a label.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_DELETE_ITEM(id, func)</B>
</TD>

<TD VALIGN=TOP>
Delete an item.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_GET_INFO(id, func)</B>
</TD>

<TD VALIGN=TOP>
Request information from the application.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_SET_INFO(id, func)</B>
</TD>

<TD VALIGN=TOP>
Information is being supplied.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_ITEM_EXPANDED(id, func)</B>
</TD>

<TD VALIGN=TOP>
Parent has been expanded.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_ITEM_EXPANDING(id, func)</B>
</TD>

<TD VALIGN=TOP>
Parent is being expanded.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_SEL_CHANGED(id, func)</B>
</TD>

<TD VALIGN=TOP>
Selection has changed.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_SEL_CHANGING(id, func)</B>
</TD>

<TD VALIGN=TOP>
Selection is changing.
</TD></TR>


<TR><TD VALIGN=TOP>
<B>EVT_TREE_KEY_DOWN(id, func)</B>
</TD>

<TD VALIGN=TOP>
A key has been pressed.
</TD></TR>


</TABLE>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx250.htm#wxtreectrl">wxTreeCtrl</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic986">wxTreeEvent::wxTreeEvent</A><BR>
<A HREF="#topic987">wxTreeEvent::m_code</A><BR>
<A HREF="#topic988">wxTreeEvent::m_itemIndex</A><BR>
<A HREF="#topic989">wxTreeEvent::m_oldItem</A><BR>
<A HREF="#topic990">wxTreeEvent::m_pointDrag</A><BR>
<P>

<HR>
<A NAME="topic986"></A>
<H3>wxTreeEvent::wxTreeEvent</H3>
<P>
<B></B> <B>wxTreeEvent</B>(<B>WXTYPE </B><I>commandType = 0</I>, <B>int </B><I>id = 0</I>)<P>
Constructor.<P>

<HR>
<A NAME="topic987"></A>
<H3>wxTreeEvent::m_code</H3>
<P>
int m_code<P>
Key code if the event is a keypress event.<P>

<HR>
<A NAME="topic988"></A>
<H3>wxTreeEvent::m_itemIndex</H3>
<P>
wxTreeItem m_item<P>
The item.<P>

<HR>
<A NAME="topic989"></A>
<H3>wxTreeEvent::m_oldItem</H3>
<P>
long m_oldItem<P>
The old item index.<P>

<HR>
<A NAME="topic990"></A>
<H3>wxTreeEvent::m_pointDrag</H3>
<P>
wxPoint m_pointDrag<P>
The position of the mouse pointer if the event is a drag event.<P>

</BODY></HTML>