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