1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/scrolbar.h
3 // Purpose: wxScrollBar class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_SCROLBAR_H_
12 #define _WX_SCROLBAR_H_
15 class WXDLLIMPEXP_CORE wxScrollBar
: public wxScrollBarBase
17 DECLARE_DYNAMIC_CLASS(wxScrollBar
)
20 inline wxScrollBar() { m_pageSize
= 0; m_viewSize
= 0; m_objectSize
= 0; }
21 virtual ~wxScrollBar();
23 inline wxScrollBar(wxWindow
*parent
, wxWindowID id
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
26 long style
= wxSB_HORIZONTAL
,
27 const wxValidator
& validator
= wxDefaultValidator
,
28 const wxString
& name
= wxScrollBarNameStr
)
30 Create(parent
, id
, pos
, size
, style
, validator
, name
);
32 bool Create(wxWindow
*parent
, wxWindowID id
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
35 long style
= wxSB_HORIZONTAL
,
36 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxScrollBarNameStr
);
39 int GetThumbPosition() const ;
40 inline int GetThumbSize() const { return m_pageSize
; }
41 inline int GetPageSize() const { return m_viewSize
; }
42 inline int GetRange() const { return m_objectSize
; }
44 virtual void SetThumbPosition(int viewStart
);
45 virtual void SetScrollbar(int position
, int thumbSize
, int range
, int pageSize
,
48 void Command(wxCommandEvent
& event
);
51 virtual void ChangeFont(bool keepOriginalSize
= true);
52 virtual void ChangeBackgroundColour();