+
+ 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&);