-#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
-#define wxFILTER_INCLUDE_CHAR_LIST 0x0040
-#define wxFILTER_EXCLUDE_CHAR_LIST 0x0080
+enum wxTextValidatorStyle
+{
+ wxFILTER_NONE = 0x0,
+ wxFILTER_EMPTY = 0x1,
+ wxFILTER_ASCII = 0x2,
+ wxFILTER_ALPHA = 0x4,
+ wxFILTER_ALPHANUMERIC = 0x8,
+ wxFILTER_DIGITS = 0x10,
+ wxFILTER_NUMERIC = 0x20,
+ wxFILTER_INCLUDE_LIST = 0x40,
+ wxFILTER_INCLUDE_CHAR_LIST = 0x80,
+ wxFILTER_EXCLUDE_LIST = 0x100,
+ wxFILTER_EXCLUDE_CHAR_LIST = 0x200
+};