]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/slider.cpp
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / os2 / slider.cpp
index 9dee621c51bccbcd0e8b1849a5851047eb93eedb..e0a6852d4aa74d6ecba6dc633099d4e97bdee5d5 100644 (file)
@@ -27,6 +27,7 @@
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
+#endif
 
 // Slider
 wxSlider::wxSlider()
@@ -45,11 +46,19 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
            int value, int minValue, int maxValue,
            const wxPoint& pos,
            const wxSize& size, long style,
+#if wxUSE_VALIDATORS
+#  if defined(__VISAGECPP__)
+           const wxValidator* validator,
+#  else
            const wxValidator& validator,
+#  endif
+#endif
            const wxString& name)
 {
     SetName(name);
+#if wxUSE_VALIDATORS
     SetValidator(validator);
+#endif
 
     if (parent) parent->AddChild(this);
 
@@ -140,6 +149,7 @@ bool wxSlider::OS2OnScroll(int WXUNUSED(orientation), WXWORD wParam,
         return TRUE;
     }
 */
+    int       newPos = 0; //temporary
     SetValue(newPos);
 
     wxScrollEvent event(scrollEvent, m_windowId);