2 % automatically generated by HelpGen from
3 % grid.h at 11/May/00 18:30:18
6 \section{\class{wxGridCellBoolEditor
}}\label{wxgridcellbooleditor
}
8 The editor for boolean data.
10 \wxheading{Derived from
}
12 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
16 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
17 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
18 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
19 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
20 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
22 \wxheading{Include files
}
28 \helpref{wxAdv
}{librarieslist
}
30 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxGridCellBoolEditor::wxGridCellBoolEditor
}\label{wxgridcellbooleditorconstr
}
35 \func{}{wxGridCellBoolEditor
}{}
40 \membersection{wxGridCellBoolEditor::IsTrueValue
}\label{wxgridcellbooleditoristruevalue
}
42 \func{static bool
}{IsTrueValue
}{\param{const wxString\&
}{value
}}
44 Returns
\true if the given
\arg{value
} is equal to the string representation of
45 the truth value we currently use (see
46 \helpref{UseStringValues
}{wxgridcellbooleditorusestringvalues
}).
49 \membersection{wxGridCellBoolEditor::UseStringValues
}\label{wxgridcellbooleditorusestringvalues
}
51 \func{static void
}{UseStringValues
}{\param{const wxString\&
}{valueTrue =
\_T("
1")
},
\param{const wxString\&
}{valueFalse =
\_T("")
}}
53 This method allows to customize the values returned by GetValue() method for
54 the cell using this editor. By default, the default values of the arguments are
55 used, i.e.
\texttt{"
1"
} is returned if the cell is checked and an empty string
56 otherwise, using this method allows to change this.
59 \section{\class{wxGridCellChoiceEditor
}}\label{wxgridcellchoiceeditor
}
61 The editor for string data allowing to choose from a list of strings.
63 \wxheading{Derived from
}
65 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
69 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
70 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
71 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
72 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
73 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
}
75 \wxheading{Include files
}
81 \helpref{wxAdv
}{librarieslist
}
84 \latexignore{\rtfignore{\wxheading{Members
}}}
87 \membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor
}\label{wxgridcellchoiceeditorconstr
}
89 \func{}{wxGridCellChoiceEditor
}{\param{size
\_t }{count =
0},
\param{const wxString
}{choices
[] = NULL
},
\param{bool
}{allowOthers = false
}}
91 \func{}{wxGridCellChoiceEditor
}{\param{const wxArrayString\&
}{choices
},
\param{bool
}{allowOthers = false
}}
93 \docparam{count
}{Number of strings from which the user can choose.
}
94 \docparam{choices
}{An array of strings from which the user can choose.
}
95 \docparam{allowOthers
}{If allowOthers is true, the user can type a string not in choices array.
}
98 \membersection{wxGridCellChoiceEditor::SetParameters
}\label{wxgridcellchoiceeditorsetparameters
}
100 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
102 Parameters string format is "item1
[,item2
[...,itemN
]]"
104 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
106 This class is responsible for providing and manipulating
107 the in-place edit controls for the grid. Instances of wxGridCellEditor
108 (actually, instances of derived classes since it is an abstract class) can be
109 associated with the cell attributes for individual cells, rows, columns, or
110 even for the entire grid.
112 \wxheading{Derived from
}
118 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
119 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
120 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
121 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
122 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
124 \wxheading{Include files
}
130 \helpref{wxAdv
}{librarieslist
}
134 \helpref{wxAdv
}{librarieslist
}
136 \latexignore{\rtfignore{\wxheading{Members
}}}
138 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
140 \func{}{wxGridCellEditor
}{\void}
142 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
144 \func{bool
}{IsCreated
}{\void}
146 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
148 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
150 Creates the actual edit control.
152 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
154 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
156 Size and position the edit control.
158 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
160 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
162 Show or hide the edit control, use the specified attributes to set
163 colours/fonts for it.
165 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
167 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
169 Draws the part of the cell not occupied by the control: the base class
170 version just fills it with background colour from the attribute.
172 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
174 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
176 Fetch the value from the table and prepare the edit control
177 to begin editing. Set the focus to the edit control.
179 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
181 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
183 Complete the editing of the current cell. Returns true if the value has
184 changed. If necessary, the control may be destroyed.
186 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
188 \func{void
}{Reset
}{\void}
190 Reset the value in the control back to its starting value.
192 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
194 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
196 If the editor is enabled by pressing keys on the grid,
197 this will be called to let the editor do something about
198 that first key if desired.
200 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
202 \func{void
}{StartingClick
}{\void}
204 If the editor is enabled by clicking on the cell, this method will be
207 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
209 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
211 Some types of controls on some platforms may need some help
214 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
216 \func{void
}{Destroy
}{\void}
220 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
222 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
224 Create a new object which is the copy of this one.
226 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
228 \func{}{\destruct{wxGridCellEditor
}}{\void}
230 The dtor is private because only DecRef() can delete us.
233 \section{\class{wxGridCellFloatEditor
}}\label{wxgridcellfloateditor
}
235 The editor for floating point numbers data.
237 \wxheading{Derived from
}
239 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
240 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
244 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
245 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
246 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
247 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
248 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
250 \wxheading{Include files
}
256 \helpref{wxAdv
}{librarieslist
}
258 \latexignore{\rtfignore{\wxheading{Members
}}}
260 \membersection{wxGridCellFloatEditor::wxGridCellFloatEditor
}\label{wxgridcellfloateditorconstr
}
262 \func{}{wxGridCellFloatEditor
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
264 \docparam{width
}{Minimum number of characters to be shown.
}
265 \docparam{precision
}{Number of digits after the decimal dot.
}
268 \membersection{wxGridCellFloatEditor::SetParameters
}\label{wxgridcellfloateditorsetparameters
}
270 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
272 Parameters string format is "width,precision"
276 \section{\class{wxGridCellNumberEditor
}}\label{wxgridcellnumbereditor
}
278 The editor for numeric integer data.
280 \wxheading{Derived from
}
282 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
283 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
287 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
288 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
289 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
290 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
291 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
293 \wxheading{Include files
}
299 \helpref{wxAdv
}{librarieslist
}
301 \latexignore{\rtfignore{\wxheading{Members
}}}
303 \membersection{wxGridCellNumberEditor::wxGridCellNumberEditor
}\label{wxgridcellnumbereditorconstr
}
305 \func{}{wxGridCellNumberEditor
}{\param{int
}{min = -
1},
\param{int
}{max = -
1}}
307 Allows to specify the range for acceptable data;
308 if min == max == -
1, no range checking is done
311 \membersection{wxGridCellNumberEditor::GetString
}\label{wxgridcellnumbereditorgetstring
}
313 \constfunc{wxString
}{GetString
}{\void}
315 String representation of the value.
318 \membersection{wxGridCellNumberEditor::HasRange
}\label{wxgridcellnumbereditorhasrange
}
320 \constfunc{bool
}{HasRange
}{\void}
322 If the return value is true, the editor uses a wxSpinCtrl to get user input,
323 otherwise it uses a wxTextCtrl.
326 \membersection{wxGridCellNumberEditor::SetParameters
}\label{wxgridcellnumbereditorsetparameters
}
328 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
330 Parameters string format is "min,max".
333 \section{\class{wxGridCellTextEditor
}}\label{wxgridcelltexteditor
}
335 The editor for string/text data.
337 \wxheading{Derived from
}
339 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
343 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
344 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
345 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
346 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
347 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
349 \wxheading{Include files
}
355 \helpref{wxAdv
}{librarieslist
}
357 \latexignore{\rtfignore{\wxheading{Members
}}}
360 \membersection{wxGridCellTextEditor::wxGridCellTextEditor
}\label{wxgridcelltexteditorconstr
}
362 \func{}{wxGridCellTextEditor
}{\void}
366 \membersection{wxGridCellTextEditor::SetParameters
}\label{wxgridcelltexteditorsetparameters
}
368 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
370 The parameters string format is "n" where n is a number representing the maximum width.