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.
|