/////////////////////////////////////////////////////////////////////////////
-// Name: slider.h
+// Name: wx/os2/slider.h
// Purpose: wxSlider class
// Author: David Webster
// Modified by:
#include "wx/control.h"
-WXDLLEXPORT_DATA(extern const char*) wxSliderNameStr;
-
// Slider
-class WXDLLEXPORT wxSlider: public wxSliderBase
+class WXDLLIMPEXP_CORE wxSlider: public wxSliderBase
{
public:
wxSlider();
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = wxSL_HORIZONTAL
-#if wxUSE_VALIDATORS
,const wxValidator& rValidator = wxDefaultValidator
-#endif
,const wxString& rsName = wxSliderNameStr
)
{
,rPos
,rSize
,lStyle
-#if wxUSE_VALIDATORS
,rValidator
-#endif
,rsName
);
}
- ~wxSlider();
+ virtual ~wxSlider();
bool Create( wxWindow* pParent
,wxWindowID vId
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = wxSL_HORIZONTAL
-#if wxUSE_VALIDATORS
,const wxValidator& rValidator = wxDefaultValidator
-#endif
,const wxString& rsName = wxSliderNameStr
);
void GetPosition( int* pnX
,int* pnY
) const ;
- bool Show(bool bShow);
+ bool Show(bool bShow = TRUE);
void SetRange( int nMinValue
,int nMaxValue
);
);
void SetThumbLength(int nLen) ;
void SetTick(int ntickPos) ;
- void SetTickFreq( int n
- ,int nPos
- );
//
// IMPLEMENTATION
inline WXHWND GetStaticMax(void) const { return m_hStaticMax; }
inline WXHWND GetEditValue(void) const { return m_hStaticValue; }
virtual bool ContainsHWND(WXHWND hWnd) const;
+ void AdjustSubControls( int nX
+ ,int nY
+ ,int nWidth
+ ,int nHeight
+ ,int nSizeFlags
+ );
+ inline int GetSizeFlags(void) { return m_nSizeFlags; }
void Command(wxCommandEvent& rEvent);
virtual WXHBRUSH OnCtlColor( WXHDC hDC
,WXHWND hWnd
int m_nTickFreq;
double m_dPixelToRange;
int m_nThumbLength;
+ int m_nSizeFlags;
+ virtual void DoGetSize( int* pnWidth
+ ,int* pnHeight
+ ) const;
virtual void DoSetSize( int nX
,int nY
,int nWidth
,int nHeight
,int nSizeFlags = wxSIZE_AUTO
);
+
+ // Platform-specific implementation of SetTickFreq
+ virtual void DoSetTickFreq(int freq);
+
private:
DECLARE_DYNAMIC_CLASS(wxSlider)
}; // end of CLASS wxSlider