]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/slider.h
Sorry, should be a __UNIX__ test
[wxWidgets.git] / include / wx / os2 / slider.h
index e3f6f87fa594b8d078a4d2e6db405915cfac13bb..bc74fe394593cd4da61131aea9fbf18096f7ab08 100644 (file)
@@ -27,9 +27,7 @@ public:
                   ,const wxPoint&     rPos = wxDefaultPosition
                   ,const wxSize&      rSize = wxDefaultSize
                   ,long               lStyle = wxSL_HORIZONTAL
                   ,const wxPoint&     rPos = wxDefaultPosition
                   ,const wxSize&      rSize = wxDefaultSize
                   ,long               lStyle = wxSL_HORIZONTAL
-#if wxUSE_VALIDATORS
                   ,const wxValidator& rValidator = wxDefaultValidator
                   ,const wxValidator& rValidator = wxDefaultValidator
-#endif
                   ,const wxString&    rsName = wxSliderNameStr
                  )
     {
                   ,const wxString&    rsName = wxSliderNameStr
                  )
     {
@@ -41,9 +39,7 @@ public:
                ,rPos
                ,rSize
                ,lStyle
                ,rPos
                ,rSize
                ,lStyle
-#if wxUSE_VALIDATORS
                ,rValidator
                ,rValidator
-#endif
                ,rsName
               );
     }
                ,rsName
               );
     }
@@ -57,9 +53,7 @@ public:
                 ,const wxPoint&     rPos = wxDefaultPosition
                 ,const wxSize&      rSize = wxDefaultSize
                 ,long               lStyle = wxSL_HORIZONTAL
                 ,const wxPoint&     rPos = wxDefaultPosition
                 ,const wxSize&      rSize = wxDefaultSize
                 ,long               lStyle = wxSL_HORIZONTAL
-#if wxUSE_VALIDATORS
                 ,const wxValidator& rValidator = wxDefaultValidator
                 ,const wxValidator& rValidator = wxDefaultValidator
-#endif
                 ,const wxString&    rsName = wxSliderNameStr
                );
 
                 ,const wxString&    rsName = wxSliderNameStr
                );
 
@@ -72,7 +66,7 @@ public:
                  void GetPosition( int* pnX
                                   ,int* pnY
                                  ) const ;
                  void GetPosition( int* pnX
                                   ,int* pnY
                                  ) const ;
-                 bool Show(bool bShow);
+                 bool Show(bool bShow = TRUE);
                  void SetRange( int nMinValue
                                ,int nMaxValue
                               );
                  void SetRange( int nMinValue
                                ,int nMaxValue
                               );
@@ -145,6 +139,9 @@ protected:
     int                             m_nThumbLength;
     int                             m_nSizeFlags;
 
     int                             m_nThumbLength;
     int                             m_nSizeFlags;
 
+    virtual void DoGetSize( int* pnWidth
+                           ,int* pnHeight
+                          ) const;
     virtual void DoSetSize( int  nX
                            ,int  nY
                            ,int  nWidth
     virtual void DoSetSize( int  nX
                            ,int  nY
                            ,int  nWidth