-#define wxFILTER_NONE 0x0000
-#define wxFILTER_ASCII 0x0001
-#define wxFILTER_ALPHA 0x0002
-#define wxFILTER_ALPHANUMERIC 0x0004
-#define wxFILTER_NUMERIC 0x0008
-#define wxFILTER_INCLUDE_LIST 0x0010
-#define wxFILTER_EXCLUDE_LIST 0x0020
+enum wxTextValidatorStyle
+{
+ wxFILTER_NONE,
+ wxFILTER_ASCII,
+ wxFILTER_ALPHA,
+ wxFILTER_ALPHANUMERIC,
+ wxFILTER_NUMERIC,
+ wxFILTER_INCLUDE_LIST,
+ wxFILTER_EXCLUDE_LIST,
+ wxFILTER_INCLUDE_CHAR_LIST,
+ wxFILTER_EXCLUDE_CHAR_LIST
+};