]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/validate/validate.cpp
Don't pass wxALIGN_ flags to wxButton
[wxWidgets.git] / samples / validate / validate.cpp
index 052d043a521709c6521275071fa49d254de16284..0b1c3767446cff7cff73c1db82b3332ceb788237 100644 (file)
 // from a text control. All validators transfer data, but not
 // all test validity, so don't be confused by the name.
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-#   pragma implementation
-#endif // __GNUG__
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -120,7 +116,9 @@ MyFrame::MyFrame(wxFrame *frame, const wxString&title, int x, int y, int w, int
     wxValidator::SetBellOnError(m_silent);
     file_menu->Check(VALIDATE_TOGGLE_BELL, !wxValidator::IsSilent());
 
+#if wxUSE_STATUSBAR
     CreateStatusBar(1);
+#endif // wxUSE_STATUSBAR
 }
 
 void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))