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 \latexignore{\rtfignore{\wxheading{Members
}}}
25 \membersection{wxGridCellBoolEditor::wxGridCellBoolEditor
}\label{wxgridcellbooleditorconstr
}
27 \func{}{wxGridCellBoolEditor
}{}
32 \section{\class{wxGridCellChoiceEditor
}}\label{wxgridcellchoiceeditor
}
34 The editor for string data allowing to choose from a list of strings.
36 \wxheading{Derived from
}
38 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
42 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
43 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
44 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
45 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
46 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
}
49 \latexignore{\rtfignore{\wxheading{Members
}}}
52 \membersection{wxGridCellChoiceEditor::wxGridCellChoiceEditor
}\label{wxgridcellchoiceeditorconstr
}
54 \func{}{wxGridCellChoiceEditor
}{\param{size
\_t }{count =
0},
\param{const wxString
}{choices
[] = NULL
},
\param{bool
}{allowOthers = false
}}
56 \func{}{wxGridCellChoiceEditor
}{\param{const wxArrayString\&
}{choices
},
\param{bool
}{allowOthers = false
}}
58 \docparam{count
}{Number of strings from which the user can choose.
}
59 \docparam{choices
}{An array of strings from which the user can choose.
}
60 \docparam{allowOthers
}{If allowOthers if true, the user can type a string not in choices array.
}
63 \membersection{wxGridCellChoiceEditor::SetParameters
}\label{wxgridcellchoiceeditorsetparameters
}
65 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
67 Parameters string format is "item1
[,item2
[...,itemN
]]"
69 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
71 This class is responsible for providing and manipulating
72 the in-place edit controls for the grid. Instances of wxGridCellEditor
73 (actually, instances of derived classes since it is an abstract class) can be
74 associated with the cell attributes for individual cells, rows, columns, or
75 even for the entire grid.
77 \wxheading{Derived from
}
83 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
84 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
85 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
86 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
87 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
89 \latexignore{\rtfignore{\wxheading{Members
}}}
91 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
93 \func{}{wxGridCellEditor
}{\void}
95 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
97 \func{bool
}{IsCreated
}{\void}
99 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
101 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
103 Creates the actual edit control.
105 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
107 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
109 Size and position the edit control.
111 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
113 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
115 Show or hide the edit control, use the specified attributes to set
116 colours/fonts for it.
118 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
120 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
122 Draws the part of the cell not occupied by the control: the base class
123 version just fills it with background colour from the attribute.
125 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
127 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
129 Fetch the value from the table and prepare the edit control
130 to begin editing. Set the focus to the edit control.
132 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
134 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
136 Complete the editing of the current cell. Returns true if the value has
137 changed. If necessary, the control may be destroyed.
139 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
141 \func{void
}{Reset
}{\void}
143 Reset the value in the control back to its starting value.
145 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
147 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
149 If the editor is enabled by pressing keys on the grid,
150 this will be called to let the editor do something about
151 that first key if desired.
153 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
155 \func{void
}{StartingClick
}{\void}
157 If the editor is enabled by clicking on the cell, this method will be
160 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
162 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
164 Some types of controls on some platforms may need some help
167 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
169 \func{void
}{Destroy
}{\void}
173 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
175 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
177 Create a new object which is the copy of this one.
179 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
181 \func{}{\destruct{wxGridCellEditor
}}{\void}
183 The dtor is private because only DecRef() can delete us.
186 \section{\class{wxGridCellFloatEditor
}}\label{wxgridcellfloateditor
}
188 The editor for floating point numbers data.
190 \wxheading{Derived from
}
192 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
193 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
197 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
198 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
199 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
200 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
201 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
204 \latexignore{\rtfignore{\wxheading{Members
}}}
207 \membersection{wxGridCellFloatEditor::wxGridCellFloatEditor
}\label{wxgridcellfloateditorconstr
}
209 \func{}{wxGridCellFloatEditor
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
211 \docparam{width
}{Minimum number of characters to be shown.
}
212 \docparam{precision
}{Number of digits after the decimal dot.
}
215 \membersection{wxGridCellFloatEditor::SetParameters
}\label{wxgridcellfloateditorsetparameters
}
217 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
219 Parameters string format is "width,precision"
223 \section{\class{wxGridCellNumberEditor
}}\label{wxgridcellnumbereditor
}
225 The editor for numeric integer data.
227 \wxheading{Derived from
}
229 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
230 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
234 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
235 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
236 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
237 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
238 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
241 \latexignore{\rtfignore{\wxheading{Members
}}}
244 \membersection{wxGridCellNumberEditor::wxGridCellNumberEditor
}\label{wxgridcellnumbereditorconstr
}
246 \func{}{wxGridCellNumberEditor
}{\param{int
}{min = -
1},
\param{int
}{max = -
1}}
248 Allows to specify the range for acceptable data;
249 if min == max == -
1, no range checking is done
252 \membersection{wxGridCellNumberEditor::GetString
}\label{wxgridcellnumbereditorgetstring
}
254 \constfunc{wxString
}{GetString
}{\void}
256 String representation of the value.
259 \membersection{wxGridCellNumberEditor::HasRange
}\label{wxgridcellnumbereditorhasrange
}
261 \constfunc{bool
}{HasRange
}{\void}
263 If the return value is true, the editor uses a wxSpinCtrl to get user input,
264 otherwise it uses a wxTextCtrl.
267 \membersection{wxGridCellNumberEditor::SetParameters
}\label{wxgridcellnumbereditorsetparameters
}
269 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
271 Parameters string format is "min,max".
274 \section{\class{wxGridCellTextEditor
}}\label{wxgridcelltexteditor
}
276 The editor for string/text data.
278 \wxheading{Derived from
}
280 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
284 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
285 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
286 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
287 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
288 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
290 \latexignore{\rtfignore{\wxheading{Members
}}}
293 \membersection{wxGridCellTextEditor::wxGridCellTextEditor
}\label{wxgridcelltexteditorconstr
}
295 \func{}{wxGridCellTextEditor
}{\void}
299 \membersection{wxGridCellTextEditor::SetParameters
}\label{wxgridcelltexteditorsetparameters
}
301 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
303 The parameters string format is "n" where n is a number representing the maximum width.