]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gridedit.tex
assert if opening more than one find/replace dialog under the same parent -- this...
[wxWidgets.git] / docs / latex / wx / gridedit.tex
CommitLineData
03817a5e
MB
1%
2% automatically generated by HelpGen from
3% grid.h at 11/May/00 18:30:18
4%
5
f3845e88
VZ
6\section{\class{wxGridCellBoolEditor}}\label{wxgridcellbooleditor}
7
8The editor for boolean data.
9
10\wxheading{Derived from}
11
12\helpref{wxGridCellEditor}{wxgridcelleditor}
13
14\wxheading{See also}
15
16\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
17\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
18\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
19\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
20\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
21
0e10e38d
VZ
22\wxheading{Include files}
23
24<wx/grid.h>
25
f3845e88
VZ
26\latexignore{\rtfignore{\wxheading{Members}}}
27
28
29\membersection{wxGridCellBoolEditor::wxGridCellBoolEditor}\label{wxgridcellbooleditorconstr}
30
31\func{}{wxGridCellBoolEditor}{}
32
33Default constructor.
34
35
36\section{\class{wxGridCellChoiceEditor}}\label{wxgridcellchoiceeditor}
37
38The editor for string data allowing to choose from a list of strings.
39
40\wxheading{Derived from}
41
42\helpref{wxGridCellEditor}{wxgridcelleditor}
43
44\wxheading{See also}
45
46\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
47\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
48\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
49\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
50\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor}
51
52
53\latexignore{\rtfignore{\wxheading{Members}}}
54
55
56\membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor}\label{wxgridcellchoiceeditorconstr}
57
cc81d32f 58\func{}{wxGridCellChoiceEditor}{\param{size\_t }{count = 0}, \param{const wxString }{choices[] = NULL}, \param{bool }{allowOthers = false}}
f3845e88 59
e119d049 60\func{}{wxGridCellChoiceEditor}{\param{const wxArrayString\& }{choices}, \param{bool }{allowOthers = false}}
7db33cc3 61
f3845e88
VZ
62\docparam{count}{Number of strings from which the user can choose.}
63\docparam{choices}{An array of strings from which the user can choose.}
cc81d32f 64\docparam{allowOthers}{If allowOthers if true, the user can type a string not in choices array.}
f3845e88
VZ
65
66
67\membersection{wxGridCellChoiceEditor::SetParameters}\label{wxgridcellchoiceeditorsetparameters}
68
69\func{void}{SetParameters}{\param{const wxString\& }{params}}
70
71Parameters string format is "item1[,item2[...,itemN]]"
72
03817a5e
MB
73\section{\class{wxGridCellEditor}}\label{wxgridcelleditor}
74
2eebb742 75This class is responsible for providing and manipulating
03817a5e 76the in-place edit controls for the grid. Instances of wxGridCellEditor
2eebb742 77(actually, instances of derived classes since it is an abstract class) can be
03817a5e
MB
78associated with the cell attributes for individual cells, rows, columns, or
79even for the entire grid.
80
03817a5e
MB
81\wxheading{Derived from}
82
2eebb742 83wxGridCellWorker
03817a5e 84
cbc95b2c
MB
85\wxheading{See also}
86
87\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
88\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
89\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
90\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
91\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
03817a5e 92
0e10e38d
VZ
93\wxheading{Include files}
94
95<wx/grid.h>
96
03817a5e
MB
97\latexignore{\rtfignore{\wxheading{Members}}}
98
03817a5e
MB
99\membersection{wxGridCellEditor::wxGridCellEditor}\label{wxgridcelleditorwxgridcelleditor}
100
101\func{}{wxGridCellEditor}{\void}
102
03817a5e
MB
103\membersection{wxGridCellEditor::IsCreated}\label{wxgridcelleditoriscreated}
104
105\func{bool}{IsCreated}{\void}
106
03817a5e
MB
107\membersection{wxGridCellEditor::Create}\label{wxgridcelleditorcreate}
108
109\func{void}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id}, \param{wxEvtHandler* }{evtHandler}}
110
2eebb742 111Creates the actual edit control.
03817a5e
MB
112
113\membersection{wxGridCellEditor::SetSize}\label{wxgridcelleditorsetsize}
114
115\func{void}{SetSize}{\param{const wxRect\& }{rect}}
116
2eebb742 117Size and position the edit control.
03817a5e
MB
118
119\membersection{wxGridCellEditor::Show}\label{wxgridcelleditorshow}
120
121\func{void}{Show}{\param{bool }{show}, \param{wxGridCellAttr* }{attr = NULL}}
122
123Show or hide the edit control, use the specified attributes to set
2eebb742 124colours/fonts for it.
03817a5e
MB
125
126\membersection{wxGridCellEditor::PaintBackground}\label{wxgridcelleditorpaintbackground}
127
128\func{void}{PaintBackground}{\param{const wxRect\& }{rectCell}, \param{wxGridCellAttr* }{attr}}
129
130Draws the part of the cell not occupied by the control: the base class
2eebb742 131version just fills it with background colour from the attribute.
03817a5e
MB
132
133\membersection{wxGridCellEditor::BeginEdit}\label{wxgridcelleditorbeginedit}
134
135\func{void}{BeginEdit}{\param{int }{row}, \param{int }{col}, \param{wxGrid* }{grid}}
136
137Fetch the value from the table and prepare the edit control
2eebb742 138to begin editing. Set the focus to the edit control.
03817a5e
MB
139
140\membersection{wxGridCellEditor::EndEdit}\label{wxgridcelleditorendedit}
141
142\func{bool}{EndEdit}{\param{int }{row}, \param{int }{col}, \param{wxGrid* }{grid}}
143
144Complete the editing of the current cell. Returns true if the value has
2eebb742 145changed. If necessary, the control may be destroyed.
03817a5e
MB
146
147\membersection{wxGridCellEditor::Reset}\label{wxgridcelleditorreset}
148
149\func{void}{Reset}{\void}
150
2eebb742 151Reset the value in the control back to its starting value.
03817a5e
MB
152
153\membersection{wxGridCellEditor::StartingKey}\label{wxgridcelleditorstartingkey}
154
155\func{void}{StartingKey}{\param{wxKeyEvent\& }{event}}
156
157If the editor is enabled by pressing keys on the grid,
158this will be called to let the editor do something about
159that first key if desired.
160
03817a5e
MB
161\membersection{wxGridCellEditor::StartingClick}\label{wxgridcelleditorstartingclick}
162
163\func{void}{StartingClick}{\void}
164
2eebb742
JS
165If the editor is enabled by clicking on the cell, this method will be
166called.
03817a5e
MB
167
168\membersection{wxGridCellEditor::HandleReturn}\label{wxgridcelleditorhandlereturn}
169
170\func{void}{HandleReturn}{\param{wxKeyEvent\& }{event}}
171
172Some types of controls on some platforms may need some help
173with the Return key.
174
03817a5e
MB
175\membersection{wxGridCellEditor::Destroy}\label{wxgridcelleditordestroy}
176
177\func{void}{Destroy}{\void}
178
2eebb742 179Final cleanup.
03817a5e
MB
180
181\membersection{wxGridCellEditor::Clone}\label{wxgridcelleditorclone}
182
183\constfunc{wxGridCellEditor*}{Clone}{\void}
184
2eebb742 185Create a new object which is the copy of this one.
03817a5e
MB
186
187\membersection{wxGridCellEditor::\destruct{wxGridCellEditor}}\label{wxgridcelleditordtor}
188
189\func{}{\destruct{wxGridCellEditor}}{\void}
190
2eebb742 191The dtor is private because only DecRef() can delete us.
03817a5e 192
cbc95b2c 193
f3845e88 194\section{\class{wxGridCellFloatEditor}}\label{wxgridcellfloateditor}
cbc95b2c 195
f3845e88 196The editor for floating point numbers data.
cbc95b2c
MB
197
198\wxheading{Derived from}
199
f3845e88 200\helpref{wxGridCellTextEditor}{wxgridcelltexteditor}\\
cbc95b2c
MB
201\helpref{wxGridCellEditor}{wxgridcelleditor}
202
203\wxheading{See also}
204
205\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
cbc95b2c 206\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
f3845e88
VZ
207\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
208\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
cbc95b2c
MB
209\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
210
0e10e38d 211\wxheading{Include files}
f3845e88 212
0e10e38d 213<wx/grid.h>
cbc95b2c 214
0e10e38d 215\latexignore{\rtfignore{\wxheading{Members}}}
cbc95b2c 216
f3845e88 217\membersection{wxGridCellFloatEditor::wxGridCellFloatEditor}\label{wxgridcellfloateditorconstr}
cbc95b2c 218
f3845e88 219\func{}{wxGridCellFloatEditor}{\param{int }{width = -1}, \param{int }{precision = -1}}
cbc95b2c 220
f3845e88
VZ
221\docparam{width}{Minimum number of characters to be shown.}
222\docparam{precision}{Number of digits after the decimal dot.}
cbc95b2c 223
f3845e88
VZ
224
225\membersection{wxGridCellFloatEditor::SetParameters}\label{wxgridcellfloateditorsetparameters}
cbc95b2c
MB
226
227\func{void}{SetParameters}{\param{const wxString\& }{params}}
228
f3845e88
VZ
229Parameters string format is "width,precision"
230
cbc95b2c
MB
231
232
233\section{\class{wxGridCellNumberEditor}}\label{wxgridcellnumbereditor}
234
235The editor for numeric integer data.
236
237\wxheading{Derived from}
238
239\helpref{wxGridCellTextEditor}{wxgridcelltexteditor}\\
240\helpref{wxGridCellEditor}{wxgridcelleditor}
241
242\wxheading{See also}
243
244\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
245\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
246\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
247\helpref{wxGridCellTextEditor}{wxgridcelltexteditor},\rtfsp
248\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
249
0e10e38d 250\wxheading{Include files}
cbc95b2c 251
0e10e38d 252<wx/grid.h>
cbc95b2c 253
0e10e38d 254\latexignore{\rtfignore{\wxheading{Members}}}
cbc95b2c
MB
255
256\membersection{wxGridCellNumberEditor::wxGridCellNumberEditor}\label{wxgridcellnumbereditorconstr}
257
258\func{}{wxGridCellNumberEditor}{\param{int }{min = -1}, \param{int }{max = -1}}
259
260Allows to specify the range for acceptable data;
261if min == max == -1, no range checking is done
262
263
264\membersection{wxGridCellNumberEditor::GetString}\label{wxgridcellnumbereditorgetstring}
265
266\constfunc{wxString}{GetString}{\void}
267
268String representation of the value.
269
270
271\membersection{wxGridCellNumberEditor::HasRange}\label{wxgridcellnumbereditorhasrange}
272
273\constfunc{bool}{HasRange}{\void}
274
275If the return value is true, the editor uses a wxSpinCtrl to get user input,
276otherwise it uses a wxTextCtrl.
277
278
279\membersection{wxGridCellNumberEditor::SetParameters}\label{wxgridcellnumbereditorsetparameters}
280
281\func{void}{SetParameters}{\param{const wxString\& }{params}}
282
283Parameters string format is "min,max".
284
285
f3845e88 286\section{\class{wxGridCellTextEditor}}\label{wxgridcelltexteditor}
cbc95b2c 287
f3845e88 288The editor for string/text data.
cbc95b2c
MB
289
290\wxheading{Derived from}
291
292\helpref{wxGridCellEditor}{wxgridcelleditor}
293
294\wxheading{See also}
295
296\helpref{wxGridCellEditor}{wxgridcelleditor},\rtfsp
297\helpref{wxGridCellFloatEditor}{wxgridcellfloateditor},\rtfsp
f3845e88 298\helpref{wxGridCellBoolEditor}{wxgridcellbooleditor},\rtfsp
cbc95b2c 299\helpref{wxGridCellNumberEditor}{wxgridcellnumbereditor},\rtfsp
cbc95b2c
MB
300\helpref{wxGridCellChoiceEditor}{wxgridcellchoiceeditor}
301
0e10e38d
VZ
302\wxheading{Include files}
303
304<wx/grid.h>
305
cbc95b2c
MB
306\latexignore{\rtfignore{\wxheading{Members}}}
307
308
f3845e88 309\membersection{wxGridCellTextEditor::wxGridCellTextEditor}\label{wxgridcelltexteditorconstr}
cbc95b2c 310
f3845e88 311\func{}{wxGridCellTextEditor}{\void}
cbc95b2c
MB
312
313Default constructor.
314
f3845e88 315\membersection{wxGridCellTextEditor::SetParameters}\label{wxgridcelltexteditorsetparameters}
cbc95b2c
MB
316
317\func{void}{SetParameters}{\param{const wxString\& }{params}}
318
f3845e88
VZ
319The parameters string format is "n" where n is a number representing the maximum width.
320
cbc95b2c 321