+
+ 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") );
+ wxCHECK_MSG( m_stringValue, false,
+ _T("No variable storage for validator") );
+
+ return true;
+ }
+
+private:
+// Cannot use
+// DECLARE_NO_COPY_CLASS(wxTextValidator)
+// because copy constructor is explicitly declared above;
+// but no copy assignment operator is defined, so declare
+// it private to prevent the compiler from defining it:
+ wxTextValidator& operator=(const wxTextValidator&);