]>
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"
17 WXDLLEXPORT_DATA(extern const char*) wxSliderNameStr
;
20 class WXDLLEXPORT wxSlider
: public wxSliderBase
24 inline wxSlider( wxWindow
* pParent
29 ,const wxPoint
& rPos
= wxDefaultPosition
30 ,const wxSize
& rSize
= wxDefaultSize
31 ,long lStyle
= wxSL_HORIZONTAL
33 ,const wxValidator
& rValidator
= wxDefaultValidator
35 ,const wxString
& rsName
= wxSliderNameStr
54 bool Create( wxWindow
* pParent
59 ,const wxPoint
& rPos
= wxDefaultPosition
60 ,const wxSize
& rSize
= wxDefaultSize
61 ,long lStyle
= wxSL_HORIZONTAL
63 ,const wxValidator
& rValidator
= wxDefaultValidator
65 ,const wxString
& rsName
= wxSliderNameStr
68 virtual int GetValue(void) const ;
69 virtual void SetValue(int);
71 void GetSize( int* pnX
74 void GetPosition( int* pnX
77 bool Show(bool bShow
);
78 void SetRange( int nMinValue
82 inline int GetMin(void) const { return m_nRangeMin
; }
83 inline int GetMax(void) const { return m_nRangeMax
; }
89 void ClearTicks(void);
91 int GetLineSize(void) const;
92 int GetPageSize(void) const ;
93 int GetSelEnd(void) const;
94 int GetSelStart(void) const;
95 inline int GetTickFreq(void) const { return m_nTickFreq
; }
96 int GetThumbLength(void) const ;
98 void SetLineSize(int nLineSize
);
99 void SetPageSize(int nPageSize
);
100 void SetSelection( int nMinPos
103 void SetThumbLength(int nLen
) ;
104 void SetTick(int ntickPos
) ;
105 void SetTickFreq( int n
112 inline WXHWND
GetStaticMin(void) const { return m_hStaticMin
; }
113 inline WXHWND
GetStaticMax(void) const { return m_hStaticMax
; }
114 inline WXHWND
GetEditValue(void) const { return m_hStaticValue
; }
115 virtual bool ContainsHWND(WXHWND hWnd
) const;
116 void AdjustSubControls( int nX
122 inline int GetSizeFlags(void) { return m_nSizeFlags
; }
123 void Command(wxCommandEvent
& rEvent
);
124 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
131 virtual bool OS2OnScroll( int nOrientation
140 WXHWND m_hStaticValue
;
146 double m_dPixelToRange
;
150 virtual void DoSetSize( int nX
154 ,int nSizeFlags
= wxSIZE_AUTO
157 DECLARE_DYNAMIC_CLASS(wxSlider
)
158 }; // end of CLASS wxSlider