]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/gauge.cpp
Fixed a bug so wxLC_VRULES works by itself.
[wxWidgets.git] / src / os2 / gauge.cpp
index 00ab8236bff185b5fc7f7f968cb61b8cc3550f5e..620760fd5f6d5c2ecf85cbaeaadb1d8ac0621daa 100644 (file)
 /* public function prototypes */
 // BOOL _Optlink gaugeInit(HINSTANCE hInstance);
 
 /* public function prototypes */
 // BOOL _Optlink gaugeInit(HINSTANCE hInstance);
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
-#endif
 
 bool wxGauge::Create(wxWindow *parent, wxWindowID id,
            int range,
            const wxPoint& pos,
            const wxSize& size,
            long style,
 
 bool wxGauge::Create(wxWindow *parent, wxWindowID id,
            int range,
            const wxPoint& pos,
            const wxSize& size,
            long style,
+#if wxUSE_VALIDATORS
            const wxValidator& validator,
            const wxValidator& validator,
+#endif
            const wxString& name)
 {
     static bool wxGaugeOS2Initialised = FALSE;
            const wxString& name)
 {
     static bool wxGaugeOS2Initialised = FALSE;
@@ -73,7 +73,9 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id,
     }
 
     SetName(name);
     }
 
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
     SetValidator(validator);
+#endif
     if (parent) parent->AddChild(this);
     m_rangeMax = range;
     m_gaugePos = 0;
     if (parent) parent->AddChild(this);
     m_rangeMax = range;
     m_gaugePos = 0;