]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/bmpbuttn.cpp
Rotated text patch from Hans-Joachim Baader (with some corrections)
[wxWidgets.git] / src / os2 / bmpbuttn.cpp
index c41f2a9fb6be6b94a5b4b9ae66900fb440bcd69c..8f61361eba44f941d4e258b88669db892535d19d 100644 (file)
@@ -28,12 +28,16 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
 bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
            const wxPoint& pos,
            const wxSize& size, long style,
+#if wxUSE_VALIDATORS
            const wxValidator& validator,
+#endif
            const wxString& name)
 {
     m_buttonBitmap = bitmap;
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
+#endif
 
     parent->AddChild(this);