2 % automatically generated by HelpGen from
3 % grid.h at 11/May/00 18:30:18
6 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
8 This class is responsible for providing and manipulating
9 the in-place edit controls for the grid. Instances of wxGridCellEditor
10 (actually, instances of derived classes since it is an abstract class) can be
11 associated with the cell attributes for individual cells, rows, columns, or
12 even for the entire grid.
14 \wxheading{Derived from
}
20 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
21 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
22 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
23 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
24 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
30 \func{}{wxGridCellEditor
}{\void}
32 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
34 \func{bool
}{IsCreated
}{\void}
36 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
38 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
40 Creates the actual edit control.
42 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
44 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
46 Size and position the edit control.
48 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
50 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
52 Show or hide the edit control, use the specified attributes to set
55 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
57 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
59 Draws the part of the cell not occupied by the control: the base class
60 version just fills it with background colour from the attribute.
62 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
64 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
66 Fetch the value from the table and prepare the edit control
67 to begin editing. Set the focus to the edit control.
69 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
71 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
73 Complete the editing of the current cell. Returns true if the value has
74 changed. If necessary, the control may be destroyed.
76 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
78 \func{void
}{Reset
}{\void}
80 Reset the value in the control back to its starting value.
82 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
84 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
86 If the editor is enabled by pressing keys on the grid,
87 this will be called to let the editor do something about
88 that first key if desired.
90 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
92 \func{void
}{StartingClick
}{\void}
94 If the editor is enabled by clicking on the cell, this method will be
97 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
99 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
101 Some types of controls on some platforms may need some help
104 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
106 \func{void
}{Destroy
}{\void}
110 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
112 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
114 Create a new object which is the copy of this one.
116 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
118 \func{}{\destruct{wxGridCellEditor
}}{\void}
120 The dtor is private because only DecRef() can delete us.
123 \section{\class{wxGridCellTextEditor
}}\label{wxgridcelltexteditor
}
125 The editor for string/text data.
127 \wxheading{Derived from
}
129 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
133 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
134 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
135 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
136 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
137 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
139 \latexignore{\rtfignore{\wxheading{Members
}}}
142 \membersection{wxGridCellTextEditor::wxGridCellTextEditor
}\label{wxgridcelltexteditorconstr
}
144 \func{}{wxGridCellTextEditor
}{\void}
148 \membersection{wxGridCellTextEditor::SetParameters
}\label{wxgridcelltexteditorsetparameters
}
150 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
152 The parameters string format is "n" where n is a number representing the maximum width.
155 \section{\class{wxGridCellNumberEditor
}}\label{wxgridcellnumbereditor
}
157 The editor for numeric integer data.
159 \wxheading{Derived from
}
161 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
162 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
166 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
167 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
168 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
169 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
170 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
173 \latexignore{\rtfignore{\wxheading{Members
}}}
176 \membersection{wxGridCellNumberEditor::wxGridCellNumberEditor
}\label{wxgridcellnumbereditorconstr
}
178 \func{}{wxGridCellNumberEditor
}{\param{int
}{min = -
1},
\param{int
}{max = -
1}}
180 Allows to specify the range for acceptable data;
181 if min == max == -
1, no range checking is done
184 \membersection{wxGridCellNumberEditor::GetString
}\label{wxgridcellnumbereditorgetstring
}
186 \constfunc{wxString
}{GetString
}{\void}
188 String representation of the value.
191 \membersection{wxGridCellNumberEditor::HasRange
}\label{wxgridcellnumbereditorhasrange
}
193 \constfunc{bool
}{HasRange
}{\void}
195 If the return value is true, the editor uses a wxSpinCtrl to get user input,
196 otherwise it uses a wxTextCtrl.
199 \membersection{wxGridCellNumberEditor::SetParameters
}\label{wxgridcellnumbereditorsetparameters
}
201 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
203 Parameters string format is "min,max".
206 \section{\class{wxGridCellFloatEditor
}}\label{wxgridcellfloateditor
}
208 The editor for floating point numbers data.
210 \wxheading{Derived from
}
212 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
213 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
217 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
218 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
219 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
220 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
221 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
224 \latexignore{\rtfignore{\wxheading{Members
}}}
227 \membersection{wxGridCellFloatEditor::wxGridCellFloatEditor
}\label{wxgridcellfloateditorconstr
}
229 \func{}{wxGridCellFloatEditor
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
231 \docparam{width
}{Minimum number of characters to be shown.
}
232 \docparam{precision
}{Number of digits after the decimal dot.
}
235 \membersection{wxGridCellFloatEditor::SetParameters
}\label{wxgridcellfloateditorsetparameters
}
237 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
239 Parameters string format is "width,precision"
242 \section{\class{wxGridCellBoolEditor
}}\label{wxgridcellbooleditor
}
244 The editor for boolean data.
246 \wxheading{Derived from
}
248 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
252 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
253 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
254 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
255 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
256 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
258 \latexignore{\rtfignore{\wxheading{Members
}}}
261 \membersection{wxGridCellBoolEditor::wxGridCellBoolEditor
}\label{wxgridcellbooleditorconstr
}
263 \func{}{wxGridCellBoolEditor
}{}
268 \section{\class{wxGridCellChoiceEditor
}}\label{wxgridcellchoiceeditor
}
270 The editor for string data allowing to choose from a list of strings.
272 \wxheading{Derived from
}
274 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
278 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
279 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
280 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
281 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
282 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
}
285 \latexignore{\rtfignore{\wxheading{Members
}}}
288 \membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor
}\label{wxgridcellchoiceeditorconstr
}
290 \func{}{wxGridCellChoiceEditor
}{\param{size
\_t }{count =
0},
\param{const wxString
}{choices
[] = NULL
},
\param{bool
}{allowOthers = FALSE
}}
292 \docparam{count
}{Number of strings from which the user can choose.
}
293 \docparam{choices
}{An array of strings from which the user can choose.
}
294 \docparam{allowOthers
}{If allowOthers if TRUE, the user can type a string not in choices array.
}
297 \membersection{wxGridCellChoiceEditor::SetParameters
}\label{wxgridcellchoiceeditorsetparameters
}
299 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
301 Parameters string format is "item1
[,item2
[...,itemN
]]"