+
+/**
+ Styles used by wxTextValidator.
+
+ Note that when you specify more styles in wxTextValidator the validation checks
+ are performed in the order in which the styles of this enumeration are defined.
+*/
+enum wxTextValidatorStyle
+{
+ /// No filtering takes place.
+ wxFILTER_NONE,
+
+ /// Empty strings are filtered out.
+ /// If this style is not specified then empty strings are accepted
+ /// only if they pass the other checks (if you use more than one wxTextValidatorStyle).
+ wxFILTER_EMPTY,
+
+ /// Non-ASCII characters are filtered out. See wxString::IsAscii.
+ wxFILTER_ASCII,
+
+ /// Non-alpha characters are filtered out.
+ /// Uses the wxWidgets wrapper for the standard CRT function @c isalpha
+ /// (which is locale-dependent) on all characters of the string.
+ wxFILTER_ALPHA,
+
+ /// Non-alphanumeric characters are filtered out.
+ /// Uses the wxWidgets wrapper for the standard CRT function @c isalnum
+ /// (which is locale-dependent) on all characters of the string.
+ wxFILTER_ALPHANUMERIC,
+
+ /// Non-numeric characters are filtered out.
+ /// Uses the wxWidgets wrapper for the standard CRT function @c isdigit
+ /// (which is locale-dependent) on all characters of the string.
+ wxFILTER_DIGITS,
+
+ /// Non-numeric characters are filtered out.
+ /// Works like @c wxFILTER_SIMPLE_NUMBER but allows also decimal points,
+ /// minus/plus signs and the 'e' or 'E' character to input exponents.
+ /// Note that this is not the same behaviour of wxString::IsNumber().
+ wxFILTER_NUMERIC,
+
+ /// Use an include list. The validator checks if the user input is on
+ /// the list, complaining if not. See wxTextValidator::SetIncludes().
+ wxFILTER_INCLUDE_LIST,
+
+ /// Use an include list. The validator checks if each input character is
+ /// in the list (one character per list element), complaining if not.
+ /// See wxTextValidator::SetCharIncludes().
+ wxFILTER_INCLUDE_CHAR_LIST,
+
+ /// Use an exclude list. The validator checks if the user input is on
+ /// the list, complaining if it is. See wxTextValidator::SetExcludes().
+ wxFILTER_EXCLUDE_LIST,
+
+ /// Use an exclude list. The validator checks if each input character is
+ /// in the list (one character per list element), complaining if it is.
+ /// See wxTextValidator::SetCharExcludes().
+ wxFILTER_EXCLUDE_CHAR_LIST
+};
+