X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/783b6cfda43499b5c12022127401e7c8b28e390d..3372145d9daa42f680fc5aab7eb00e82d587c5a0:/src/common/valtext.cpp diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index 4f1740a749..f891889826 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -10,22 +10,24 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ - #pragma implementation "valtext.h" +#pragma implementation "valtext.h" #endif // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop + #pragma hdrstop #endif +#if wxUSE_VALIDATORS + #ifndef WX_PRECOMP - #include <stdio.h> - #include "wx/textctrl.h" - #include "wx/utils.h" - #include "wx/msgdlg.h" - #include "wx/intl.h" + #include <stdio.h> + #include "wx/textctrl.h" + #include "wx/utils.h" + #include "wx/msgdlg.h" + #include "wx/intl.h" #endif #include "wx/valtext.h" @@ -129,7 +131,7 @@ bool wxTextValidator::Validate(wxWindow *parent) wxTextCtrl *control = (wxTextCtrl *) m_validatorWindow ; // If window is disabled, simply return - if ( !control->Enabled() ) + if ( !control->IsEnabled() ) return TRUE; wxString val(control->GetValue()); @@ -306,3 +308,6 @@ static bool wxIsNumeric(const wxString& val) return TRUE; } +#endif + // wxUSE_VALIDATORS + \ No newline at end of file