contents up previous next

wxgridcellnumbereditor

the editor for numeric integer data.

derived from

wxgridcelltexteditor
wxgridcelleditor

see also

wxgridcelleditor, wxgridcellfloateditor, wxgridcellbooleditor, wxgridcelltexteditor, wxgridcellchoiceeditor

include files

<wx/grid.h>

members

wxgridcellnumbereditor::wxgridcellnumbereditor
wxgridcellnumbereditor::getstring
wxgridcellnumbereditor::hasrange
wxgridcellnumbereditor::setparameters


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() const

string representation of the value.


wxgridcellnumbereditor::hasrange

bool hasrange() 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".