]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/slider95.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/slider95.h
3 // Purpose: wxSlider95 class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "slider95.h"
20 class WXDLLEXPORT wxSlider95
: public wxSliderBase
25 wxSlider95(wxWindow
*parent
, wxWindowID id
,
26 int value
, int minValue
, int maxValue
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxSL_HORIZONTAL
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxSliderNameStr
)
33 Create(parent
, id
, value
, minValue
, maxValue
, pos
, size
, style
, validator
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID id
,
39 int value
, int minValue
, int maxValue
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxSL_HORIZONTAL
,
43 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxSliderNameStr
);
46 virtual int GetValue() const ;
47 virtual void SetValue(int);
49 void GetSize(int *x
, int *y
) const ;
50 void GetPosition(int *x
, int *y
) const ;
54 void SetRange(int minValue
, int maxValue
);
56 int GetMin() const { return m_rangeMin
; }
57 int GetMax() const { return m_rangeMax
; }
60 void SetTickFreq(int n
, int pos
);
61 int GetTickFreq() const { return m_tickFreq
; }
62 void SetPageSize(int pageSize
);
63 int GetPageSize() const ;
66 void SetLineSize(int lineSize
);
67 int GetLineSize() const ;
68 int GetSelEnd() const ;
69 int GetSelStart() const ;
70 void SetSelection(int minPos
, int maxPos
);
71 void SetThumbLength(int len
) ;
72 int GetThumbLength() const ;
73 void SetTick(int tickPos
) ;
76 WXHWND
GetStaticMin() const { return m_staticMin
; }
77 WXHWND
GetStaticMax() const { return m_staticMax
; }
78 WXHWND
GetEditValue() const { return m_staticValue
; }
79 virtual bool ContainsHWND(WXHWND hWnd
) const;
81 void Command(wxCommandEvent
& event
);
82 virtual WXHBRUSH
OnCtlColor(WXHDC pDC
, WXHWND pWnd
, WXUINT nCtlColor
,
83 WXUINT message
, WXWPARAM wParam
, WXLPARAM lParam
);
84 virtual bool MSWOnScroll(int orientation
, WXWORD wParam
,
85 WXWORD pos
, WXHWND control
);
97 virtual void DoSetSize(int x
, int y
,
98 int width
, int height
,
99 int sizeFlags
= wxSIZE_AUTO
);
101 DECLARE_DYNAMIC_CLASS(wxSlider95
)