1 #ifndef _WX_SCROLBAR_H_BASE_
2 #define _WX_SCROLBAR_H_BASE_
6 #include "wx/control.h"
8 WXDLLEXPORT_DATA(extern const wxChar
*) wxScrollBarNameStr
;
10 // ----------------------------------------------------------------------------
11 // wxScrollBar: a scroll bar control
12 // ----------------------------------------------------------------------------
14 class WXDLLEXPORT wxScrollBarBase
: public wxControl
19 // scrollbar construction
20 bool Create(wxWindow
*parent
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
,
24 long style
= wxSB_HORIZONTAL
,
25 const wxValidator
& validator
= wxDefaultValidator
,
26 const wxString
& name
= wxScrollBarNameStr
);
29 virtual int GetThumbPosition() const = 0;
30 virtual int GetThumbSize() const = 0;
31 virtual int GetPageSize() const = 0;
32 virtual int GetRange() const = 0;
34 bool IsVertical() const { return (m_windowStyle
& wxVERTICAL
) != 0; }
37 virtual void SetThumbPosition(int viewStart
) = 0;
38 virtual void SetScrollbar(int position
, int thumbSize
,
39 int range
, int pageSize
,
40 bool refresh
= TRUE
) = 0;
43 DECLARE_NO_COPY_CLASS(wxScrollBarBase
)
46 #if defined(__WXUNIVERSAL__)
47 #include "wx/univ/scrolbar.h"
48 #elif defined(__WXMSW__)
49 #include "wx/msw/scrolbar.h"
50 #elif defined(__WXMOTIF__)
51 #include "wx/motif/scrolbar.h"
52 #elif defined(__WXGTK__)
53 #include "wx/gtk/scrolbar.h"
54 #elif defined(__WXMAC__)
55 #include "wx/mac/scrolbar.h"
56 #elif defined(__WXPM__)
57 #include "wx/os2/scrolbar.h"
60 #endif // wxUSE_SCROLLBAR
63 // _WX_SCROLBAR_H_BASE_