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
}
76 \latexignore{\rtfignore{\wxheading{Members
}}}
79 \membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor
}\label{wxgridcellchoiceeditorconstr
}
81 \func{}{wxGridCellChoiceEditor
}{\param{size
\_t }{count =
0},
\param{const wxString
}{choices
[] = NULL
},
\param{bool
}{allowOthers = false
}}
83 \func{}{wxGridCellChoiceEditor
}{\param{const wxArrayString\&
}{choices
},
\param{bool
}{allowOthers = false
}}
85 \docparam{count
}{Number of strings from which the user can choose.
}
86 \docparam{choices
}{An array of strings from which the user can choose.
}
87 \docparam{allowOthers
}{If allowOthers is true, the user can type a string not in choices array.
}
90 \membersection{wxGridCellChoiceEditor::SetParameters
}\label{wxgridcellchoiceeditorsetparameters
}
92 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
94 Parameters string format is "item1
[,item2
[...,itemN
]]"
96 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
98 This class is responsible for providing and manipulating
99 the in-place edit controls for the grid. Instances of wxGridCellEditor
100 (actually, instances of derived classes since it is an abstract class) can be
101 associated with the cell attributes for individual cells, rows, columns, or
102 even for the entire grid.
104 \wxheading{Derived from
}
110 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
111 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
112 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
113 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
114 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
116 \wxheading{Include files
}
122 \helpref{wxAdv
}{librarieslist
}
126 \helpref{wxAdv
}{librarieslist
}
128 \latexignore{\rtfignore{\wxheading{Members
}}}
130 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
132 \func{}{wxGridCellEditor
}{\void}
134 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
136 \func{bool
}{IsCreated
}{\void}
138 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
140 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
142 Creates the actual edit control.
144 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
146 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
148 Size and position the edit control.
150 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
152 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
154 Show or hide the edit control, use the specified attributes to set
155 colours/fonts for it.
157 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
159 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
161 Draws the part of the cell not occupied by the control: the base class
162 version just fills it with background colour from the attribute.
164 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
166 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
168 Fetch the value from the table and prepare the edit control
169 to begin editing. Set the focus to the edit control.
171 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
173 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
175 Complete the editing of the current cell. Returns true if the value has
176 changed. If necessary, the control may be destroyed.
178 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
180 \func{void
}{Reset
}{\void}
182 Reset the value in the control back to its starting value.
184 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
186 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
188 If the editor is enabled by pressing keys on the grid,
189 this will be called to let the editor do something about
190 that first key if desired.
192 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
194 \func{void
}{StartingClick
}{\void}
196 If the editor is enabled by clicking on the cell, this method will be
199 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
201 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
203 Some types of controls on some platforms may need some help
206 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
208 \func{void
}{Destroy
}{\void}
212 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
214 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
216 Create a new object which is the copy of this one.
218 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
220 \func{}{\destruct{wxGridCellEditor
}}{\void}
222 The dtor is private because only DecRef() can delete us.
225 \section{\class{wxGridCellFloatEditor
}}\label{wxgridcellfloateditor
}
227 The editor for floating point numbers data.
229 \wxheading{Derived from
}
231 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
232 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
236 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
237 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
238 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
239 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
240 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
242 \wxheading{Include files
}
248 \helpref{wxAdv
}{librarieslist
}
250 \latexignore{\rtfignore{\wxheading{Members
}}}
252 \membersection{wxGridCellFloatEditor::wxGridCellFloatEditor
}\label{wxgridcellfloateditorconstr
}
254 \func{}{wxGridCellFloatEditor
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
256 \docparam{width
}{Minimum number of characters to be shown.
}
257 \docparam{precision
}{Number of digits after the decimal dot.
}
260 \membersection{wxGridCellFloatEditor::SetParameters
}\label{wxgridcellfloateditorsetparameters
}
262 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
264 Parameters string format is "width,precision"
268 \section{\class{wxGridCellNumberEditor
}}\label{wxgridcellnumbereditor
}
270 The editor for numeric integer data.
272 \wxheading{Derived from
}
274 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
275 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
279 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
280 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
281 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
282 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
283 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
285 \wxheading{Include files
}
291 \helpref{wxAdv
}{librarieslist
}
293 \latexignore{\rtfignore{\wxheading{Members
}}}
295 \membersection{wxGridCellNumberEditor::wxGridCellNumberEditor
}\label{wxgridcellnumbereditorconstr
}
297 \func{}{wxGridCellNumberEditor
}{\param{int
}{min = -
1},
\param{int
}{max = -
1}}
299 Allows to specify the range for acceptable data;
300 if min == max == -
1, no range checking is done
303 \membersection{wxGridCellNumberEditor::GetString
}\label{wxgridcellnumbereditorgetstring
}
305 \constfunc{wxString
}{GetString
}{\void}
307 String representation of the value.
310 \membersection{wxGridCellNumberEditor::HasRange
}\label{wxgridcellnumbereditorhasrange
}
312 \constfunc{bool
}{HasRange
}{\void}
314 If the return value is true, the editor uses a wxSpinCtrl to get user input,
315 otherwise it uses a wxTextCtrl.
318 \membersection{wxGridCellNumberEditor::SetParameters
}\label{wxgridcellnumbereditorsetparameters
}
320 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
322 Parameters string format is "min,max".
325 \section{\class{wxGridCellTextEditor
}}\label{wxgridcelltexteditor
}
327 The editor for string/text data.
329 \wxheading{Derived from
}
331 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
335 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
336 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
337 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
338 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
339 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
341 \wxheading{Include files
}
347 \helpref{wxAdv
}{librarieslist
}
349 \latexignore{\rtfignore{\wxheading{Members
}}}
352 \membersection{wxGridCellTextEditor::wxGridCellTextEditor
}\label{wxgridcelltexteditorconstr
}
354 \func{}{wxGridCellTextEditor
}{\void}
358 \membersection{wxGridCellTextEditor::SetParameters
}\label{wxgridcelltexteditorsetparameters
}
360 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
362 The parameters string format is "n" where n is a number representing the maximum width.