$szTitle = "wxgenericvalidator"; include "./_header.inc"; ?>
wxgenericvalidator performs data transfer (but not validation or filtering) for the following basic controls: wxbutton, wxcheckbox, wxlistbox, wxstatictext, wxradiobutton, wxradiobox, wxchoice, wxcombobox, wxgauge, wxslider, wxscrollbar, wxspinbutton, wxtextctrl, wxchecklistbox.
it checks the type of the window and uses an appropriate type for that window. for example, wxbutton and wxtextctrl transfer data to and from a wxstring variable; wxlistbox uses a wxarrayint; wxcheckbox uses a bool.
for more information, please see validator overview.
derived from
wxvalidator
wxevthandler
wxobject
include files
<wx/valgen.h>
see also
validator overview, wxvalidator, wxtextvalidator
members
wxgenericvalidator::wxgenericvalidator
wxgenericvalidator::~wxgenericvalidator
wxgenericvalidator::clone
wxgenericvalidator::transferfromwindow
wxgenericvalidator::transfertowindow
wxgenericvalidator(const wxgenericvalidator& validator)
copy constructor.
wxgenericvalidator(bool* valptr)
constructor taking a bool pointer. this will be used for wxcheckbox and wxradiobutton.
wxgenericvalidator(wxstring* valptr)
constructor taking a wxstring pointer. this will be used for wxbutton, wxcombobox, wxstatictext, wxtextctrl.
wxgenericvalidator(int* valptr)
constructor taking an integer pointer. this will be used for wxgauge, wxscrollbar, wxradiobox, wxspinbutton, wxchoice.
wxgenericvalidator(wxarrayint* valptr)
constructor taking a wxarrayint pointer. this will be used for wxlistbox, wxchecklistbox.
parameters
validator
valptr
~wxgenericvalidator()
destructor.
virtual wxvalidator* clone() const
clones the generic validator using the copy constructor.
virtual bool transferfromwindow()
transfers the value from the window to the appropriate data type.
virtual bool transfertowindow()
transfers the value to the window.
include "./_footer.inc"; ?>