wxtextvalidatorwxtextvalidator validates text controls, providing a variety of filtering behaviours. for more information, please see validator overview. derived from
wxvalidator include files <wx/valtext.h> see also validator overview, wxvalidator, wxgenericvalidator members
wxtextvalidator::wxtextvalidator
wxtextvalidator::wxtextvalidatorwxtextvalidator(const wxtextvalidator& validator) copy constructor. wxtextvalidator(long style = wxfilter_none, wxstring* valptr = null) constructor, taking a style and optional pointer to a wxstring variable. parameters style
valptr
wxtextvalidator::clonevirtual wxvalidator* clone() const clones the text validator using the copy constructor.
wxtextvalidator::getexcludeswxarraystring& getexcludes() const returns a reference to the exclude list (the list of invalid values).
wxtextvalidator::getincludeswxarraystring& getincludes() const returns a reference to the include list (the list of valid values).
wxtextvalidator::getstylelong getstyle() const returns the validator style.
wxtextvalidator::oncharvoid onchar(wxkeyevent& event) receives character input from the window and filters it according to the current validator style.
wxtextvalidator::setexcludesvoid setexcludes(const wxarraystring& stringlist) sets the exclude list (invalid values for the user input).
wxtextvalidator::setincludesvoid setincludes(const wxarraystring& stringlist) sets the include list (valid values for the user input).
wxtextvalidator::setstylevoid setstyle(long style) sets the validator style.
wxtextvalidator::transferfromwindowvirtual bool transferfromwindow() transfers the value in the text control to the string.
wxtextvalidator::transfertowindowvirtual bool transfertowindow() transfers the string value to the text control.
wxtextvalidator::validatevirtual bool validate(wxwindow* parent) validates the window contents against the include or exclude lists, depending on the validator style.
|