]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/slider.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSlider class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
18 class WXDLLEXPORT wxSlider
: public wxSliderBase
22 inline wxSlider( wxWindow
* pParent
27 ,const wxPoint
& rPos
= wxDefaultPosition
28 ,const wxSize
& rSize
= wxDefaultSize
29 ,long lStyle
= wxSL_HORIZONTAL
31 ,const wxValidator
& rValidator
= wxDefaultValidator
33 ,const wxString
& rsName
= wxSliderNameStr
52 bool Create( wxWindow
* pParent
57 ,const wxPoint
& rPos
= wxDefaultPosition
58 ,const wxSize
& rSize
= wxDefaultSize
59 ,long lStyle
= wxSL_HORIZONTAL
61 ,const wxValidator
& rValidator
= wxDefaultValidator
63 ,const wxString
& rsName
= wxSliderNameStr
66 virtual int GetValue(void) const ;
67 virtual void SetValue(int);
69 virtual void DoGetSize( int* pnWidth
72 void GetSize( int* pnX
75 void GetPosition( int* pnX
78 bool Show(bool bShow
);
79 void SetRange( int nMinValue
83 inline int GetMin(void) const { return m_nRangeMin
; }
84 inline int GetMax(void) const { return m_nRangeMax
; }
90 void ClearTicks(void);
92 int GetLineSize(void) const;
93 int GetPageSize(void) const ;
94 int GetSelEnd(void) const;
95 int GetSelStart(void) const;
96 inline int GetTickFreq(void) const { return m_nTickFreq
; }
97 int GetThumbLength(void) const ;
99 void SetLineSize(int nLineSize
);
100 void SetPageSize(int nPageSize
);
101 void SetSelection( int nMinPos
104 void SetThumbLength(int nLen
) ;
105 void SetTick(int ntickPos
) ;
106 void SetTickFreq( int n
113 inline WXHWND
GetStaticMin(void) const { return m_hStaticMin
; }
114 inline WXHWND
GetStaticMax(void) const { return m_hStaticMax
; }
115 inline WXHWND
GetEditValue(void) const { return m_hStaticValue
; }
116 virtual bool ContainsHWND(WXHWND hWnd
) const;
117 void AdjustSubControls( int nX
123 inline int GetSizeFlags(void) { return m_nSizeFlags
; }
124 void Command(wxCommandEvent
& rEvent
);
125 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
132 virtual bool OS2OnScroll( int nOrientation
141 WXHWND m_hStaticValue
;
147 double m_dPixelToRange
;
151 virtual void DoSetSize( int nX
155 ,int nSizeFlags
= wxSIZE_AUTO
158 DECLARE_DYNAMIC_CLASS(wxSlider
)
159 }; // end of CLASS wxSlider