]>
Commit | Line | Data |
---|---|---|
f3845e88 | 1 | \section{\class{wxGridEditorCreatedEvent}}\label{wxgrideditorcreatedevent} |
cbc95b2c MB |
2 | |
3 | \wxheading{Derived from} | |
4 | ||
cbc95b2c MB |
5 | \helpref{wxCommandEvent}{wxcommandevent}\\ |
6 | \helpref{wxEvent}{wxevent}\\ | |
7 | \helpref{wxObject}{wxobject} | |
8 | ||
cbc95b2c MB |
9 | \wxheading{Event handling} |
10 | ||
f3845e88 VZ |
11 | The event handler for the following functions takes a |
12 | \helpref{wxGridEditorCreatedEvent}{wxgrideditorcreatedevent} parameter. | |
13 | ||
14 | \twocolwidtha{7cm} | |
15 | \begin{twocollist}\itemsep=0pt | |
16 | \twocolitem{{\bf EVT\_GRID\_EDITOR\_CREATED(func)}}{The editor for a cell was created. Processes a wxEVT\_GRID\_EDITOR\_CREATED.} | |
17 | \end{twocollist}% | |
cbc95b2c MB |
18 | |
19 | \latexignore{\rtfignore{\wxheading{Members}}} | |
20 | ||
f3845e88 | 21 | \membersection{wxGridEditorCreatedEvent::wxGridEditorCreatedEvent}\label{wxgrideditorcreatedeventconstr} |
cbc95b2c | 22 | |
f3845e88 | 23 | \func{}{wxGridEditorCreatedEvent}{\void} |
cbc95b2c MB |
24 | |
25 | Default constructor. | |
26 | ||
f3845e88 VZ |
27 | \func{}{wxGridEditorCreatedEvent}{\param{int }{id}, \param{wxEventType }{type}, |
28 | \param{wxObject* }{obj}, \param{int }{row}, \param{int }{col}, \param{wxControl* }{ctrl}} | |
cbc95b2c | 29 | |
f3845e88 | 30 | \membersection{wxGridEditorCreatedEvent::GetCol}\label{wxgrideditorcreatedeventgetcol} |
cbc95b2c MB |
31 | |
32 | \func{int}{GetCol}{\void} | |
33 | ||
f3845e88 | 34 | Returns the column at which the event occurred. |
cbc95b2c | 35 | |
f3845e88 | 36 | \membersection{wxGridEditorCreatedEvent::GetControl}\label{wxgrideditorcreatedeventgetcontrol} |
cbc95b2c | 37 | |
f3845e88 | 38 | \func{wxControl*}{GetControl}{\void} |
cbc95b2c | 39 | |
f3845e88 | 40 | Returns the edit control. |
cbc95b2c | 41 | |
f3845e88 | 42 | \membersection{wxGridEditorCreatedEvent::GetRow}\label{wxgrideditorcreatedeventgetrow} |
cbc95b2c MB |
43 | |
44 | \func{int}{GetRow}{\void} | |
45 | ||
f3845e88 | 46 | Returns the row at which the event occurred. |
cbc95b2c | 47 | |
f3845e88 | 48 | \membersection{wxGridEditorCreatedEvent::SetCol}\label{wxgrideditorcreatedeventsetcol} |
cbc95b2c | 49 | |
f3845e88 | 50 | \func{void}{SetCol}{\param{int }{col}} |
cbc95b2c | 51 | |
f3845e88 | 52 | Sets the column at which the event occurred. |
cbc95b2c | 53 | |
f3845e88 | 54 | \membersection{wxGridEditorCreatedEvent::SetControl}\label{wxgrideditorcreatedeventsetcontrol} |
cbc95b2c | 55 | |
f3845e88 | 56 | \func{void}{SetControl}{\param{wxControl* }{ctrl}} |
cbc95b2c | 57 | |
f3845e88 | 58 | Sets the edit control. |
cbc95b2c | 59 | |
f3845e88 | 60 | \membersection{wxGridEditorCreatedEvent::SetRow}\label{wxgrideditorcreatedeventsetrow} |
cbc95b2c | 61 | |
f3845e88 | 62 | \func{void}{SetRow}{\param{int }{row}} |
cbc95b2c | 63 | |
f3845e88 | 64 | Sets the row at which the event occurred. |
cbc95b2c | 65 | |
f3845e88 | 66 | \section{\class{wxGridEvent}}\label{wxgridevent} |
cbc95b2c | 67 | |
f3845e88 | 68 | This event class contains information about various grid events. |
cbc95b2c MB |
69 | |
70 | \wxheading{Derived from} | |
71 | ||
72 | \helpref{wxNotifyEvent}{wxnotifyevent}\\ | |
73 | \helpref{wxCommandEvent}{wxcommandevent}\\ | |
74 | \helpref{wxEvent}{wxevent}\\ | |
75 | \helpref{wxObject}{wxobject} | |
76 | ||
77 | \wxheading{Include files} | |
78 | ||
79 | <wx/grid.h> | |
80 | ||
81 | \wxheading{Event handling} | |
82 | ||
f3845e88 | 83 | \input gridevt.inc |
cbc95b2c MB |
84 | |
85 | \latexignore{\rtfignore{\wxheading{Members}}} | |
86 | ||
f3845e88 | 87 | \membersection{wxGridEvent::wxGridEvent}\label{wxgrideventconstr} |
cbc95b2c | 88 | |
f3845e88 | 89 | \func{}{wxGridEvent}{\void} |
cbc95b2c MB |
90 | |
91 | Default constructor. | |
92 | ||
f3845e88 VZ |
93 | \func{}{wxGridEvent}{\param{int }{id}, \param{wxEventType }{type}, \param{wxObject* }{obj}, |
94 | \param{int }{row = -1}, \param{int }{col = -1}, \param{int }{x = -1}, \param{int }{y = -1}, | |
95 | \param{bool }{sel = TRUE}, \param{bool }{control = FALSE}, \param{bool }{shift = FALSE}, | |
cbc95b2c MB |
96 | \param{bool }{alt = FALSE}, \param{bool }{meta = FALSE}} |
97 | ||
f3845e88 VZ |
98 | \wxheading{Parameters} |
99 | ||
100 | \membersection{wxGridEvent::AltDown}\label{wxgrideventaltdown} | |
cbc95b2c MB |
101 | |
102 | \func{bool}{AltDown}{\void} | |
103 | ||
104 | Returns TRUE if the Alt key was down at the time of the event. | |
105 | ||
f3845e88 | 106 | \membersection{wxGridEvent::ControlDown}\label{wxgrideventcontroldown} |
cbc95b2c MB |
107 | |
108 | \func{bool}{ControlDown}{\void} | |
109 | ||
110 | Returns TRUE if the Control key was down at the time of the event. | |
111 | ||
f3845e88 VZ |
112 | \membersection{wxGridEvent::GetCol}\label{wxgrideventgetcol} |
113 | ||
114 | \func{int}{GetCol}{\void} | |
115 | ||
116 | Column at which the event occurred. | |
117 | ||
118 | \membersection{wxGridEvent::GetPosition}\label{wxgrideventgetposition} | |
cbc95b2c MB |
119 | |
120 | \func{wxPoint}{GetPosition}{\void} | |
121 | ||
122 | Position in pixels at which the event occurred. | |
123 | ||
f3845e88 | 124 | \membersection{wxGridEvent::GetRow}\label{wxgrideventgetrow} |
cbc95b2c | 125 | |
f3845e88 | 126 | \func{int}{GetRow}{\void} |
cbc95b2c | 127 | |
f3845e88 | 128 | Row at which the evnet occurred. |
cbc95b2c | 129 | |
f3845e88 | 130 | \membersection{wxGridEvent::MetaDown}\label{wxgrideventmetadown} |
cbc95b2c MB |
131 | |
132 | \func{bool}{MetaDown}{\void} | |
133 | ||
134 | Returns TRUE if the Meta key was down at the time of the event. | |
135 | ||
f3845e88 VZ |
136 | \membersection{wxGridEvent::Selecting}\label{wxgrideventselecting} |
137 | ||
138 | \func{bool}{Selecting}{\void} | |
139 | ||
140 | Returns TRUE if the user deselected a cell, FALSE if the user | |
141 | deselected a cell. | |
142 | ||
143 | \membersection{wxGridEvent::ShiftDown}\label{wxgrideventshiftdown} | |
cbc95b2c MB |
144 | |
145 | \func{bool}{ShiftDown}{\void} | |
146 | ||
147 | Returns TRUE if the Shift key was down at the time of the event. | |
148 | ||
149 | \section{\class{wxGridRangeSelectEvent}}\label{wxgridrangeselectevent} | |
150 | ||
151 | \wxheading{Derived from} | |
152 | ||
153 | \helpref{wxNotifyEvent}{wxnotifyevent}\\ | |
154 | \helpref{wxCommandEvent}{wxcommandevent}\\ | |
155 | \helpref{wxEvent}{wxevent}\\ | |
156 | \helpref{wxObject}{wxobject} | |
157 | ||
158 | \wxheading{Event handling} | |
159 | ||
160 | The event handler for the following functions takes a | |
161 | \helpref{wxGridRangeSelectEvent}{wxgridrangeselectevent} parameter. | |
162 | ||
163 | \twocolwidtha{7cm} | |
164 | \begin{twocollist}\itemsep=0pt | |
165 | \twocolitem{{\bf EVT\_GRID\_RANGE\_SELECT(func)}}{The user selected a group of contiguous cells. Processes a wxEVT\_GRID\_RANGE\_SELECT.} | |
166 | \end{twocollist}% | |
167 | ||
168 | \latexignore{\rtfignore{\wxheading{Members}}} | |
169 | ||
170 | \membersection{wxGridRangeSelectEvent::wxGridRangeSelectEvent}\label{wxgridrangeselecteventconstr} | |
171 | ||
172 | \func{}{wxGridRangeSelectEvent}{\void} | |
173 | ||
174 | Default constructor. | |
175 | ||
176 | \func{}{wxGridRangeSelectEvent}{\param{int }{id}, \param{wxEventType }{type}, | |
177 | \param{wxObject* }{obj}, \param{const wxGridCellCoords\& }{topLeft}, | |
178 | \param{const wxGridCellCoords\& }{bottomRight}, \param{bool }{sel = TRUE}, | |
179 | \param{bool }{control = FALSE}, \param{bool }{shift = FALSE}, \param{bool }{alt = FALSE}, | |
180 | \param{bool }{meta = FALSE}} | |
181 | ||
182 | \membersection{wxGridRangeSelectEvent::AltDown}\label{wxgridrangeselecteventaltdown} | |
183 | ||
184 | \func{bool}{AltDown}{\void} | |
185 | ||
186 | Returns TRUE if the Alt key was down at the time of the event. | |
187 | ||
188 | \membersection{wxGridRangeSelectEvent::ControlDown}\label{wxgridrangeselecteventcontroldown} | |
189 | ||
190 | \func{bool}{ControlDown}{\void} | |
191 | ||
192 | Returns TRUE if the Control key was down at the time of the event. | |
193 | ||
194 | \membersection{wxGridRangeSelectEvent::GetBottomRightCoords}\label{wxgridrangeselecteventgetbottomrightcoords} | |
195 | ||
196 | \func{wxGridCellCoords}{GetBottomRightCoords}{\void} | |
197 | ||
198 | Top left corner of the rectangular area that was (de)selected. | |
199 | ||
200 | \membersection{wxGridRangeSelectEvent::GetBottomRow}\label{wxgridrangeselecteventgetbottomrow} | |
201 | ||
202 | \func{int}{GetBottomRow}{\void} | |
203 | ||
204 | Bottom row of the rectangular area that was (de)selected. | |
205 | ||
206 | \membersection{wxGridRangeSelectEvent::GetLeftCol}\label{wxgridrangeselecteventgetleftcol} | |
207 | ||
208 | \func{int}{GetLeftCol}{\void} | |
209 | ||
210 | Left column of the rectangualr area that was (de)selected. | |
211 | ||
212 | \membersection{wxGridRangeSelectEvent::GetRightCol}\label{wxgridrangeselecteventgetrightcol} | |
213 | ||
214 | \func{int}{GetRightCol}{\void} | |
215 | ||
216 | Right column of the rectangular area that was (de)selected. | |
217 | ||
218 | \membersection{wxGridRangeSelectEvent::GetTopLeftCoords}\label{wxgridrangeselecteventgettopleftcoords} | |
219 | ||
220 | \func{wxGridCellCoords}{GetTopLeftCoords}{\void} | |
221 | ||
222 | Top left corner of the rectangular area that was (de)delected. | |
223 | ||
224 | \membersection{wxGridRangeSelectEvent::GetTopRow}\label{wxgridrangeselecteventgettoprow} | |
225 | ||
226 | \func{int}{GetTopRow}{\void} | |
227 | ||
228 | Top row of the rectangular area that was (de)selected. | |
229 | ||
230 | \membersection{wxGridRangeSelectEvent::MetaDown}\label{wxgridrangeselecteventmetadown} | |
231 | ||
232 | \func{bool}{MetaDown}{\void} | |
233 | ||
234 | Returns TRUE if the Meta key was down at the time of the event. | |
235 | ||
236 | \membersection{wxGridRangeSelectEvent::Selecting}\label{wxgridrangeselecteventselecting} | |
237 | ||
238 | \func{bool}{Selecting}{\void} | |
239 | ||
240 | Returns TRUE if the area was selected, FALSE otherwise. | |
241 | ||
242 | \membersection{wxGridRangeSelectEvent::ShiftDown}\label{wxgridrangeselecteventshiftdown} | |
243 | ||
244 | \func{bool}{ShiftDown}{\void} | |
245 | ||
246 | Returns TRUE if the Shift key was down at the time of the event. | |
247 | ||
f3845e88 VZ |
248 | \section{\class{wxGridSizeEvent}}\label{wxgridsizeevent} |
249 | ||
250 | This event class contains information about a row/column resize event. | |
cbc95b2c MB |
251 | |
252 | \wxheading{Derived from} | |
253 | ||
f3845e88 | 254 | \helpref{wxNotifyEvent}{wxnotifyevent}\\ |
cbc95b2c MB |
255 | \helpref{wxCommandEvent}{wxcommandevent}\\ |
256 | \helpref{wxEvent}{wxevent}\\ | |
257 | \helpref{wxObject}{wxobject} | |
258 | ||
f3845e88 VZ |
259 | \wxheading{Include files} |
260 | ||
261 | <wx/grid.h> | |
262 | ||
cbc95b2c MB |
263 | \wxheading{Event handling} |
264 | ||
265 | The event handler for the following functions takes a | |
f3845e88 | 266 | \helpref{wxGridSizeEvent}{wxgridsizeevent} parameter. |
cbc95b2c MB |
267 | |
268 | \twocolwidtha{7cm} | |
269 | \begin{twocollist}\itemsep=0pt | |
f3845e88 VZ |
270 | \twocolitem{{\bf EVT\_GRID\_COL\_SIZE(func)}}{The user resized a column by dragging it. Processes a wxEVT\_GRID\_COL\_SIZE.} |
271 | \twocolitem{{\bf EVT\_GRID\_ROW\_SIZE(func)}}{The user resized a row by dragging it. Processes a wxEVT\_GRID\_ROW\_SIZE.} | |
cbc95b2c MB |
272 | \end{twocollist}% |
273 | ||
274 | \latexignore{\rtfignore{\wxheading{Members}}} | |
275 | ||
f3845e88 | 276 | \membersection{wxGridSizeEvent::wxGridSizeEvent}\label{wxgridsizeeventconstr} |
cbc95b2c | 277 | |
f3845e88 | 278 | \func{}{wxGridSizeEvent}{\void} |
cbc95b2c MB |
279 | |
280 | Default constructor. | |
281 | ||
f3845e88 VZ |
282 | \func{}{wxGridSizeEvent}{\param{int }{id}, \param{wxEventType }{type}, |
283 | \param{wxObject* }{obj}, \param{int }{rowOrCol = -1}, \param{int }{x = -1}, | |
284 | \param{int }{y = -1}, \param{bool }{control = FALSE}, \param{bool }{shift = FALSE}, | |
285 | \param{bool }{alt = FALSE}, \param{bool }{meta = FALSE}} | |
cbc95b2c | 286 | |
f3845e88 | 287 | \membersection{wxGridSizeEvent::AltDown}\label{wxgridsizeeventaltdown} |
cbc95b2c | 288 | |
f3845e88 | 289 | \func{bool}{AltDown}{\void} |
cbc95b2c | 290 | |
f3845e88 | 291 | Returns TRUE if the Alt key was down at the time of the event. |
cbc95b2c | 292 | |
f3845e88 | 293 | \membersection{wxGridSizeEvent::ControlDown}\label{wxgridsizeeventcontroldown} |
cbc95b2c | 294 | |
f3845e88 | 295 | \func{bool}{ControlDown}{\void} |
cbc95b2c | 296 | |
f3845e88 | 297 | Returns TRUE if the Control key was down at the time of the event. |
cbc95b2c | 298 | |
f3845e88 | 299 | \membersection{wxGridSizeEvent::GetPosition}\label{wxgridsizeeventgetposition} |
cbc95b2c | 300 | |
f3845e88 | 301 | \func{wxPoint}{GetPosition}{\void} |
cbc95b2c | 302 | |
f3845e88 | 303 | Position in pixels at which the event occurred. |
cbc95b2c | 304 | |
f3845e88 | 305 | \membersection{wxGridSizeEvent::GetRowOrCol}\label{wxgridsizeeventgetroworcol} |
cbc95b2c | 306 | |
f3845e88 | 307 | \func{int}{GetRowOrCol}{\void} |
cbc95b2c | 308 | |
f3845e88 | 309 | Row or column at that was resized. |
cbc95b2c | 310 | |
f3845e88 | 311 | \membersection{wxGridSizeEvent::MetaDown}\label{wxgridsizeeventmetadown} |
cbc95b2c | 312 | |
f3845e88 | 313 | \func{bool}{MetaDown}{\void} |
cbc95b2c | 314 | |
f3845e88 | 315 | Returns TRUE if the Meta key was down at the time of the event. |
cbc95b2c | 316 | |
f3845e88 | 317 | \membersection{wxGridSizeEvent::ShiftDown}\label{wxgridsizeeventshiftdown} |
cbc95b2c | 318 | |
f3845e88 | 319 | \func{bool}{ShiftDown}{\void} |
cbc95b2c | 320 | |
f3845e88 | 321 | Returns TRUE if the Shift key was down at the time of the event. |
cbc95b2c | 322 |