X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/409c9842c71df526bcfbf1cf5ce80067b09d4d97..423a556f53cb2e4caade61d39e0e2105e508eecb:/src/os2/slider.cpp diff --git a/src/os2/slider.cpp b/src/os2/slider.cpp index 9dee621c51..e0a6852d4a 100644 --- a/src/os2/slider.cpp +++ b/src/os2/slider.cpp @@ -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);