]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/scrolbar.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxScrollBar class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_SCROLBAR_H_
13 #define _WX_SCROLBAR_H_
15 #include "wx/scrolbar.h"
18 class WXDLLEXPORT wxScrollBar
: public wxScrollBarBase
27 inline wxScrollBar( wxWindow
* pParent
29 ,const wxPoint
& rPos
= wxDefaultPosition
30 ,const wxSize
& rSize
= wxDefaultSize
31 ,long lStyle
= wxSB_HORIZONTAL
33 ,const wxValidator
& rValidator
= wxDefaultValidator
35 ,const wxString
& rsName
= wxScrollBarNameStr
49 virtual ~wxScrollBar();
51 bool Create( wxWindow
* pParent
53 ,const wxPoint
& rPos
= wxDefaultPosition
54 ,const wxSize
& rSize
= wxDefaultSize
55 ,long lStyle
= wxSB_HORIZONTAL
57 ,const wxValidator
& rValidator
= wxDefaultValidator
59 ,const wxString
& rsName
= wxScrollBarNameStr
62 int GetThumbPosition(void) const ;
63 inline int GetThumbSize(void) const { return m_nPageSize
; }
64 inline int GetPageSize(void) const { return m_nViewSize
; }
65 inline int GetRange(void) const { return m_nObjectSize
; }
67 virtual void SetThumbPosition(int nViewStart
);
68 virtual void SetScrollbar( int nPosition
75 void Command(wxCommandEvent
& rEvent
);
76 virtual WXHBRUSH
OnCtlColor( WXHDC hDC
83 virtual bool OS2OnScroll( int nOrientation
95 DECLARE_DYNAMIC_CLASS(wxScrollBar
)
96 }; // end of CLASS wxScrollBar