+
+ 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;
+ }