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 \membersection{wxGridCellBoolEditor::IsTrueValue
}\label{wxgridcellbooleditoristruevalue
}
38 \func{static bool
}{IsTrueValue
}{\param{const wxString\&
}{value
}}
40 Returns
\true if the given
\arg{value
} is equal to the string representation of
41 the truth value we currently use (see
42 \helpref{UseStringValues
}{wxgridcellbooleditorusestringvalues
}).
45 \membersection{wxGridCellBoolEditor::UseStringValues
}\label{wxgridcellbooleditorusestringvalues
}
47 \func{static void
}{UseStringValues
}{\param{const wxString\&
}{valueTrue =
\_T("
1")
},
\param{const wxString\&
}{valueFalse =
\_T("")
}}
49 This method allows to customize the values returned by GetValue() method for
50 the cell using this editor. By default, the default values of the arguments are
51 used, i.e.
\texttt{"
1"
} is returned if the cell is checked and an empty string
52 otherwise, using this method allows to change this.
55 \section{\class{wxGridCellChoiceEditor
}}\label{wxgridcellchoiceeditor
}
57 The editor for string data allowing to choose from a list of strings.
59 \wxheading{Derived from
}
61 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
65 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
66 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
67 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
68 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
69 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
}
72 \latexignore{\rtfignore{\wxheading{Members
}}}
75 \membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor
}\label{wxgridcellchoiceeditorconstr
}
77 \func{}{wxGridCellChoiceEditor
}{\param{size
\_t }{count =
0},
\param{const wxString
}{choices
[] = NULL
},
\param{bool
}{allowOthers = false
}}
79 \func{}{wxGridCellChoiceEditor
}{\param{const wxArrayString\&
}{choices
},
\param{bool
}{allowOthers = false
}}
81 \docparam{count
}{Number of strings from which the user can choose.
}
82 \docparam{choices
}{An array of strings from which the user can choose.
}
83 \docparam{allowOthers
}{If allowOthers if true, the user can type a string not in choices array.
}
86 \membersection{wxGridCellChoiceEditor::SetParameters
}\label{wxgridcellchoiceeditorsetparameters
}
88 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
90 Parameters string format is "item1
[,item2
[...,itemN
]]"
92 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
94 This class is responsible for providing and manipulating
95 the in-place edit controls for the grid. Instances of wxGridCellEditor
96 (actually, instances of derived classes since it is an abstract class) can be
97 associated with the cell attributes for individual cells, rows, columns, or
98 even for the entire grid.
100 \wxheading{Derived from
}
106 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
107 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
108 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
109 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
110 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
112 \wxheading{Include files
}
116 \latexignore{\rtfignore{\wxheading{Members
}}}
118 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
120 \func{}{wxGridCellEditor
}{\void}
122 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
124 \func{bool
}{IsCreated
}{\void}
126 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
128 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
130 Creates the actual edit control.
132 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
134 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
136 Size and position the edit control.
138 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
140 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
142 Show or hide the edit control, use the specified attributes to set
143 colours/fonts for it.
145 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
147 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
149 Draws the part of the cell not occupied by the control: the base class
150 version just fills it with background colour from the attribute.
152 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
154 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
156 Fetch the value from the table and prepare the edit control
157 to begin editing. Set the focus to the edit control.
159 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
161 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
163 Complete the editing of the current cell. Returns true if the value has
164 changed. If necessary, the control may be destroyed.
166 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
168 \func{void
}{Reset
}{\void}
170 Reset the value in the control back to its starting value.
172 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
174 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
176 If the editor is enabled by pressing keys on the grid,
177 this will be called to let the editor do something about
178 that first key if desired.
180 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
182 \func{void
}{StartingClick
}{\void}
184 If the editor is enabled by clicking on the cell, this method will be
187 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
189 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
191 Some types of controls on some platforms may need some help
194 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
196 \func{void
}{Destroy
}{\void}
200 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
202 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
204 Create a new object which is the copy of this one.
206 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
208 \func{}{\destruct{wxGridCellEditor
}}{\void}
210 The dtor is private because only DecRef() can delete us.
213 \section{\class{wxGridCellFloatEditor
}}\label{wxgridcellfloateditor
}
215 The editor for floating point numbers data.
217 \wxheading{Derived from
}
219 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
220 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
224 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
225 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
226 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
227 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
228 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
230 \wxheading{Include files
}
234 \latexignore{\rtfignore{\wxheading{Members
}}}
236 \membersection{wxGridCellFloatEditor::wxGridCellFloatEditor
}\label{wxgridcellfloateditorconstr
}
238 \func{}{wxGridCellFloatEditor
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
240 \docparam{width
}{Minimum number of characters to be shown.
}
241 \docparam{precision
}{Number of digits after the decimal dot.
}
244 \membersection{wxGridCellFloatEditor::SetParameters
}\label{wxgridcellfloateditorsetparameters
}
246 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
248 Parameters string format is "width,precision"
252 \section{\class{wxGridCellNumberEditor
}}\label{wxgridcellnumbereditor
}
254 The editor for numeric integer data.
256 \wxheading{Derived from
}
258 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
259 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
263 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
264 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
265 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
266 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
267 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
269 \wxheading{Include files
}
273 \latexignore{\rtfignore{\wxheading{Members
}}}
275 \membersection{wxGridCellNumberEditor::wxGridCellNumberEditor
}\label{wxgridcellnumbereditorconstr
}
277 \func{}{wxGridCellNumberEditor
}{\param{int
}{min = -
1},
\param{int
}{max = -
1}}
279 Allows to specify the range for acceptable data;
280 if min == max == -
1, no range checking is done
283 \membersection{wxGridCellNumberEditor::GetString
}\label{wxgridcellnumbereditorgetstring
}
285 \constfunc{wxString
}{GetString
}{\void}
287 String representation of the value.
290 \membersection{wxGridCellNumberEditor::HasRange
}\label{wxgridcellnumbereditorhasrange
}
292 \constfunc{bool
}{HasRange
}{\void}
294 If the return value is true, the editor uses a wxSpinCtrl to get user input,
295 otherwise it uses a wxTextCtrl.
298 \membersection{wxGridCellNumberEditor::SetParameters
}\label{wxgridcellnumbereditorsetparameters
}
300 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
302 Parameters string format is "min,max".
305 \section{\class{wxGridCellTextEditor
}}\label{wxgridcelltexteditor
}
307 The editor for string/text data.
309 \wxheading{Derived from
}
311 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
315 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
316 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
317 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
318 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
319 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
321 \wxheading{Include files
}
325 \latexignore{\rtfignore{\wxheading{Members
}}}
328 \membersection{wxGridCellTextEditor::wxGridCellTextEditor
}\label{wxgridcelltexteditorconstr
}
330 \func{}{wxGridCellTextEditor
}{\void}
334 \membersection{wxGridCellTextEditor::SetParameters
}\label{wxgridcelltexteditorsetparameters
}
336 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
338 The parameters string format is "n" where n is a number representing the maximum width.