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