wxGridCellNumberEditor

The editor for numeric integer data.

Derived from

wxGridCellTextEditor
wxGridCellEditor

See also

wxGridCellEditor, wxGridCellFloatEditor, wxGridCellBoolEditor, wxGridCellTextEditor, wxGridCellChoiceEditor

Include files

<wx/grid.h>



wxGridCellNumberEditor::wxGridCellNumberEditor



wxGridCellNumberEditor(int min = -1, int max = -1)

Allows to specify the range for acceptable data; if min == max == -1, no range checking is done



wxGridCellNumberEditor::GetString

wxString GetString(void) const

String representation of the value.



wxGridCellNumberEditor::HasRange

bool HasRange(void) const

If the return value is true, the editor uses a wxSpinCtrl to get user input, otherwise it uses a wxTextCtrl.



wxGridCellNumberEditor::SetParameters



void SetParameters(const wxString& params)

Parameters string format is "min,max".



ymasuda 平成17年11月19日