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
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
29 \membersection{wxGridCellBoolEditor::wxGridCellBoolEditor
}\label{wxgridcellbooleditorconstr
}
31 \func{}{wxGridCellBoolEditor
}{}
36 \section{\class{wxGridCellChoiceEditor
}}\label{wxgridcellchoiceeditor
}
38 The editor for string data allowing to choose from a list of strings.
40 \wxheading{Derived from
}
42 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
46 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
47 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
48 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
49 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
50 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
}
53 \latexignore{\rtfignore{\wxheading{Members
}}}
56 \membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor
}\label{wxgridcellchoiceeditorconstr
}
58 \func{}{wxGridCellChoiceEditor
}{\param{size
\_t }{count =
0},
\param{const wxString
}{choices
[] = NULL
},
\param{bool
}{allowOthers = false
}}
60 \func{}{wxGridCellChoiceEditor
}{\param{const wxArrayString\&
}{choices
},
\param{bool
}{allowOthers = false
}}
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.
}
64 \docparam{allowOthers
}{If allowOthers if true, the user can type a string not in choices array.
}
67 \membersection{wxGridCellChoiceEditor::SetParameters
}\label{wxgridcellchoiceeditorsetparameters
}
69 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
71 Parameters string format is "item1
[,item2
[...,itemN
]]"
73 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
75 This class is responsible for providing and manipulating
76 the in-place edit controls for the grid. Instances of wxGridCellEditor
77 (actually, instances of derived classes since it is an abstract class) can be
78 associated with the cell attributes for individual cells, rows, columns, or
79 even for the entire grid.
81 \wxheading{Derived from
}
87 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
88 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
89 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
90 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
91 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
93 \wxheading{Include files
}
97 \latexignore{\rtfignore{\wxheading{Members
}}}
99 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
101 \func{}{wxGridCellEditor
}{\void}
103 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
105 \func{bool
}{IsCreated
}{\void}
107 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
109 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
111 Creates the actual edit control.
113 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
115 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
117 Size and position the edit control.
119 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
121 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
123 Show or hide the edit control, use the specified attributes to set
124 colours/fonts for it.
126 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
128 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
130 Draws the part of the cell not occupied by the control: the base class
131 version just fills it with background colour from the attribute.
133 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
135 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
137 Fetch the value from the table and prepare the edit control
138 to begin editing. Set the focus to the edit control.
140 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
142 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
144 Complete the editing of the current cell. Returns true if the value has
145 changed. If necessary, the control may be destroyed.
147 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
149 \func{void
}{Reset
}{\void}
151 Reset the value in the control back to its starting value.
153 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
155 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
157 If the editor is enabled by pressing keys on the grid,
158 this will be called to let the editor do something about
159 that first key if desired.
161 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
163 \func{void
}{StartingClick
}{\void}
165 If the editor is enabled by clicking on the cell, this method will be
168 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
170 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
172 Some types of controls on some platforms may need some help
175 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
177 \func{void
}{Destroy
}{\void}
181 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
183 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
185 Create a new object which is the copy of this one.
187 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
189 \func{}{\destruct{wxGridCellEditor
}}{\void}
191 The dtor is private because only DecRef() can delete us.
194 \section{\class{wxGridCellFloatEditor
}}\label{wxgridcellfloateditor
}
196 The editor for floating point numbers data.
198 \wxheading{Derived from
}
200 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
201 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
205 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
206 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
207 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
208 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
209 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
211 \wxheading{Include files
}
215 \latexignore{\rtfignore{\wxheading{Members
}}}
217 \membersection{wxGridCellFloatEditor::wxGridCellFloatEditor
}\label{wxgridcellfloateditorconstr
}
219 \func{}{wxGridCellFloatEditor
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
221 \docparam{width
}{Minimum number of characters to be shown.
}
222 \docparam{precision
}{Number of digits after the decimal dot.
}
225 \membersection{wxGridCellFloatEditor::SetParameters
}\label{wxgridcellfloateditorsetparameters
}
227 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
229 Parameters string format is "width,precision"
233 \section{\class{wxGridCellNumberEditor
}}\label{wxgridcellnumbereditor
}
235 The editor for numeric integer data.
237 \wxheading{Derived from
}
239 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
240 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
244 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
245 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
246 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
247 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
248 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
250 \wxheading{Include files
}
254 \latexignore{\rtfignore{\wxheading{Members
}}}
256 \membersection{wxGridCellNumberEditor::wxGridCellNumberEditor
}\label{wxgridcellnumbereditorconstr
}
258 \func{}{wxGridCellNumberEditor
}{\param{int
}{min = -
1},
\param{int
}{max = -
1}}
260 Allows to specify the range for acceptable data;
261 if min == max == -
1, no range checking is done
264 \membersection{wxGridCellNumberEditor::GetString
}\label{wxgridcellnumbereditorgetstring
}
266 \constfunc{wxString
}{GetString
}{\void}
268 String representation of the value.
271 \membersection{wxGridCellNumberEditor::HasRange
}\label{wxgridcellnumbereditorhasrange
}
273 \constfunc{bool
}{HasRange
}{\void}
275 If the return value is true, the editor uses a wxSpinCtrl to get user input,
276 otherwise it uses a wxTextCtrl.
279 \membersection{wxGridCellNumberEditor::SetParameters
}\label{wxgridcellnumbereditorsetparameters
}
281 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
283 Parameters string format is "min,max".
286 \section{\class{wxGridCellTextEditor
}}\label{wxgridcelltexteditor
}
288 The editor for string/text data.
290 \wxheading{Derived from
}
292 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
296 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
297 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
298 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
299 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
300 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
302 \wxheading{Include files
}
306 \latexignore{\rtfignore{\wxheading{Members
}}}
309 \membersection{wxGridCellTextEditor::wxGridCellTextEditor
}\label{wxgridcelltexteditorconstr
}
311 \func{}{wxGridCellTextEditor
}{\void}
315 \membersection{wxGridCellTextEditor::SetParameters
}\label{wxgridcelltexteditorsetparameters
}
317 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
319 The parameters string format is "n" where n is a number representing the maximum width.