-protected:
- long m_validatorStyle;
- wxString * m_stringValue;
-#if WXWIN_COMPATIBILITY_2_4
- wxStringList m_includeList;
- wxStringList m_excludeList;
-#endif
- wxArrayString m_includes;
- wxArrayString m_excludes;
-
- bool CheckValidator() const
- {
- wxCHECK_MSG( m_validatorWindow, false,
- _T("No window associated with validator") );
- wxCHECK_MSG( m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)), false,
- _T("wxTextValidator is only for wxTextCtrl's") );
+ // returns the error message if the contents of 'val' are invalid
+ virtual wxString IsValid(const wxString& val) const;