]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/valtext.h
added a call for invalidating the dc setup on mac explicitely (needed in case of...
[wxWidgets.git] / include / wx / valtext.h
index bd2bb8d93b35c186c85e05a06981efc3a37fa844..942110e65baa20568fed985b09c23fa237d2ab46 100644 (file)
 #pragma interface "valtext.h"
 #endif
 
+#include "wx/defs.h"
+
+#if wxUSE_VALIDATORS
+
 #include "wx/validate.h"
 
 #define wxFILTER_NONE           0x0000
@@ -39,7 +43,7 @@ public:
   // if you're passing a reference to a validator.
   // Another possibility is to always pass a pointer to a new validator
   // (so the calling code can use a copy constructor of the relevant class).
-  virtual wxValidator *Clone(void) const { return new wxTextValidator(*this); }
+  virtual wxObject *Clone(void) const { return new wxTextValidator(*this); }
   bool Copy(const wxTextValidator& val);
 
   // Called when the value in the window must be validated.
@@ -75,3 +79,7 @@ protected:
 };
 
 #endif
+  // wxUSE_VALIDATORS
+
+#endif
+  // _WX_VALTEXTH__