X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..3ef37e7f4ec5f0688a4fb47e530ca2d30a6bb3ed:/include/wx/slider.h diff --git a/include/wx/slider.h b/include/wx/slider.h index 09cd35c8b5..894b8515fa 100644 --- a/include/wx/slider.h +++ b/include/wx/slider.h @@ -52,6 +52,8 @@ public: virtual void SetRange(int minValue, int maxValue) = 0; virtual int GetMin() const = 0; virtual int GetMax() const = 0; + void SetMin( int minValue ) { SetRange( minValue , GetMax() ) ; } + void SetMax( int maxValue ) { SetRange( GetMin() , maxValue ) ; } // the line/page size is the increment by which the slider moves when // cursor arrow key/page up or down are pressed (clicking the mouse is like @@ -91,7 +93,6 @@ private: #elif defined(__WXMSW__) #include "wx/msw/slider95.h" #define wxSlider wxSlider95 - #define sm_classwxSlider sm_classwxSlider95 #elif defined(__WXMOTIF__) #include "wx/motif/slider.h" #elif defined(__WXGTK__)