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 \docparam{count
}{Number of strings from which the user can choose.
}
57 \docparam{choices
}{An array of strings from which the user can choose.
}
58 \docparam{allowOthers
}{If allowOthers if true, the user can type a string not in choices array.
}
61 \membersection{wxGridCellChoiceEditor::SetParameters
}\label{wxgridcellchoiceeditorsetparameters
}
63 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
65 Parameters string format is "item1
[,item2
[...,itemN
]]"
67 \section{\class{wxGridCellEditor
}}\label{wxgridcelleditor
}
69 This class is responsible for providing and manipulating
70 the in-place edit controls for the grid. Instances of wxGridCellEditor
71 (actually, instances of derived classes since it is an abstract class) can be
72 associated with the cell attributes for individual cells, rows, columns, or
73 even for the entire grid.
75 \wxheading{Derived from
}
81 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
82 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
83 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
84 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
85 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
87 \latexignore{\rtfignore{\wxheading{Members
}}}
89 \membersection{wxGridCellEditor::wxGridCellEditor
}\label{wxgridcelleditorwxgridcelleditor
}
91 \func{}{wxGridCellEditor
}{\void}
93 \membersection{wxGridCellEditor::IsCreated
}\label{wxgridcelleditoriscreated
}
95 \func{bool
}{IsCreated
}{\void}
97 \membersection{wxGridCellEditor::Create
}\label{wxgridcelleditorcreate
}
99 \func{void
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{wxEvtHandler*
}{evtHandler
}}
101 Creates the actual edit control.
103 \membersection{wxGridCellEditor::SetSize
}\label{wxgridcelleditorsetsize
}
105 \func{void
}{SetSize
}{\param{const wxRect\&
}{rect
}}
107 Size and position the edit control.
109 \membersection{wxGridCellEditor::Show
}\label{wxgridcelleditorshow
}
111 \func{void
}{Show
}{\param{bool
}{show
},
\param{wxGridCellAttr*
}{attr = NULL
}}
113 Show or hide the edit control, use the specified attributes to set
114 colours/fonts for it.
116 \membersection{wxGridCellEditor::PaintBackground
}\label{wxgridcelleditorpaintbackground
}
118 \func{void
}{PaintBackground
}{\param{const wxRect\&
}{rectCell
},
\param{wxGridCellAttr*
}{attr
}}
120 Draws the part of the cell not occupied by the control: the base class
121 version just fills it with background colour from the attribute.
123 \membersection{wxGridCellEditor::BeginEdit
}\label{wxgridcelleditorbeginedit
}
125 \func{void
}{BeginEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
127 Fetch the value from the table and prepare the edit control
128 to begin editing. Set the focus to the edit control.
130 \membersection{wxGridCellEditor::EndEdit
}\label{wxgridcelleditorendedit
}
132 \func{bool
}{EndEdit
}{\param{int
}{row
},
\param{int
}{col
},
\param{wxGrid*
}{grid
}}
134 Complete the editing of the current cell. Returns true if the value has
135 changed. If necessary, the control may be destroyed.
137 \membersection{wxGridCellEditor::Reset
}\label{wxgridcelleditorreset
}
139 \func{void
}{Reset
}{\void}
141 Reset the value in the control back to its starting value.
143 \membersection{wxGridCellEditor::StartingKey
}\label{wxgridcelleditorstartingkey
}
145 \func{void
}{StartingKey
}{\param{wxKeyEvent\&
}{event
}}
147 If the editor is enabled by pressing keys on the grid,
148 this will be called to let the editor do something about
149 that first key if desired.
151 \membersection{wxGridCellEditor::StartingClick
}\label{wxgridcelleditorstartingclick
}
153 \func{void
}{StartingClick
}{\void}
155 If the editor is enabled by clicking on the cell, this method will be
158 \membersection{wxGridCellEditor::HandleReturn
}\label{wxgridcelleditorhandlereturn
}
160 \func{void
}{HandleReturn
}{\param{wxKeyEvent\&
}{event
}}
162 Some types of controls on some platforms may need some help
165 \membersection{wxGridCellEditor::Destroy
}\label{wxgridcelleditordestroy
}
167 \func{void
}{Destroy
}{\void}
171 \membersection{wxGridCellEditor::Clone
}\label{wxgridcelleditorclone
}
173 \constfunc{wxGridCellEditor*
}{Clone
}{\void}
175 Create a new object which is the copy of this one.
177 \membersection{wxGridCellEditor::
\destruct{wxGridCellEditor
}}\label{wxgridcelleditordtor
}
179 \func{}{\destruct{wxGridCellEditor
}}{\void}
181 The dtor is private because only DecRef() can delete us.
184 \section{\class{wxGridCellFloatEditor
}}\label{wxgridcellfloateditor
}
186 The editor for floating point numbers data.
188 \wxheading{Derived from
}
190 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
191 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
195 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
196 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
197 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
198 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
199 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
202 \latexignore{\rtfignore{\wxheading{Members
}}}
205 \membersection{wxGridCellFloatEditor::wxGridCellFloatEditor
}\label{wxgridcellfloateditorconstr
}
207 \func{}{wxGridCellFloatEditor
}{\param{int
}{width = -
1},
\param{int
}{precision = -
1}}
209 \docparam{width
}{Minimum number of characters to be shown.
}
210 \docparam{precision
}{Number of digits after the decimal dot.
}
213 \membersection{wxGridCellFloatEditor::SetParameters
}\label{wxgridcellfloateditorsetparameters
}
215 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
217 Parameters string format is "width,precision"
221 \section{\class{wxGridCellNumberEditor
}}\label{wxgridcellnumbereditor
}
223 The editor for numeric integer data.
225 \wxheading{Derived from
}
227 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
}\\
228 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
232 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
233 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
234 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
235 \helpref{wxGridCellTextEditor
}{wxgridcelltexteditor
},
\rtfsp
236 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
239 \latexignore{\rtfignore{\wxheading{Members
}}}
242 \membersection{wxGridCellNumberEditor::wxGridCellNumberEditor
}\label{wxgridcellnumbereditorconstr
}
244 \func{}{wxGridCellNumberEditor
}{\param{int
}{min = -
1},
\param{int
}{max = -
1}}
246 Allows to specify the range for acceptable data;
247 if min == max == -
1, no range checking is done
250 \membersection{wxGridCellNumberEditor::GetString
}\label{wxgridcellnumbereditorgetstring
}
252 \constfunc{wxString
}{GetString
}{\void}
254 String representation of the value.
257 \membersection{wxGridCellNumberEditor::HasRange
}\label{wxgridcellnumbereditorhasrange
}
259 \constfunc{bool
}{HasRange
}{\void}
261 If the return value is true, the editor uses a wxSpinCtrl to get user input,
262 otherwise it uses a wxTextCtrl.
265 \membersection{wxGridCellNumberEditor::SetParameters
}\label{wxgridcellnumbereditorsetparameters
}
267 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
269 Parameters string format is "min,max".
272 \section{\class{wxGridCellTextEditor
}}\label{wxgridcelltexteditor
}
274 The editor for string/text data.
276 \wxheading{Derived from
}
278 \helpref{wxGridCellEditor
}{wxgridcelleditor
}
282 \helpref{wxGridCellEditor
}{wxgridcelleditor
},
\rtfsp
283 \helpref{wxGridCellFloatEditor
}{wxgridcellfloateditor
},
\rtfsp
284 \helpref{wxGridCellBoolEditor
}{wxgridcellbooleditor
},
\rtfsp
285 \helpref{wxGridCellNumberEditor
}{wxgridcellnumbereditor
},
\rtfsp
286 \helpref{wxGridCellChoiceEditor
}{wxgridcellchoiceeditor
}
288 \latexignore{\rtfignore{\wxheading{Members
}}}
291 \membersection{wxGridCellTextEditor::wxGridCellTextEditor
}\label{wxgridcelltexteditorconstr
}
293 \func{}{wxGridCellTextEditor
}{\void}
297 \membersection{wxGridCellTextEditor::SetParameters
}\label{wxgridcelltexteditorsetparameters
}
299 \func{void
}{SetParameters
}{\param{const wxString\&
}{params
}}
301 The parameters string format is "n" where n is a number representing the maximum width.