]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/scrolbar.cpp
Fixes/makefiles for building data view control on Windows
[wxWidgets.git] / src / palmos / scrolbar.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/scrolbar.cpp
3 // Purpose: wxScrollBar
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifdef __BORLANDC__
16 #pragma hdrstop
17 #endif
18
19 #if wxUSE_SCROLLBAR
20
21 #ifndef WX_PRECOMP
22 #include "wx/utils.h"
23 #endif
24
25 #include "wx/scrolbar.h"
26 #include "wx/palmos/private.h"
27 #include "wx/settings.h"
28
29 #if wxUSE_EXTENDED_RTTI
30 WX_DEFINE_FLAGS( wxScrollBarStyle )
31
32 wxBEGIN_FLAGS( wxScrollBarStyle )
33 // new style border flags, we put them first to
34 // use them for streaming out
35 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
36 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
37 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
38 wxFLAGS_MEMBER(wxBORDER_RAISED)
39 wxFLAGS_MEMBER(wxBORDER_STATIC)
40 wxFLAGS_MEMBER(wxBORDER_NONE)
41
42 // old style border flags
43 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
44 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
45 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
46 wxFLAGS_MEMBER(wxRAISED_BORDER)
47 wxFLAGS_MEMBER(wxSTATIC_BORDER)
48 wxFLAGS_MEMBER(wxBORDER)
49
50 // standard window styles
51 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
52 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
53 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
54 wxFLAGS_MEMBER(wxWANTS_CHARS)
55 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
56 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
57 wxFLAGS_MEMBER(wxVSCROLL)
58 wxFLAGS_MEMBER(wxHSCROLL)
59
60 wxFLAGS_MEMBER(wxSB_HORIZONTAL)
61 wxFLAGS_MEMBER(wxSB_VERTICAL)
62
63 wxEND_FLAGS( wxScrollBarStyle )
64
65 IMPLEMENT_DYNAMIC_CLASS_XTI(wxScrollBar, wxControl,"wx/scrolbar.h")
66
67 wxBEGIN_PROPERTIES_TABLE(wxScrollBar)
68 wxEVENT_RANGE_PROPERTY( Scroll , wxEVT_SCROLL_TOP , wxEVT_SCROLL_ENDSCROLL , wxScrollEvent )
69
70 wxPROPERTY( ThumbPosition , int , SetThumbPosition, GetThumbPosition, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
71 wxPROPERTY( Range , int , SetRange, GetRange, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
72 wxPROPERTY( ThumbSize , int , SetThumbSize, GetThumbSize, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
73 wxPROPERTY( PageSize , int , SetPageSize, GetPageSize, 0 , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
74 wxPROPERTY_FLAGS( WindowStyle , wxScrollBarStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
75 wxEND_PROPERTIES_TABLE()
76
77 wxBEGIN_HANDLERS_TABLE(wxScrollBar)
78 wxEND_HANDLERS_TABLE()
79
80 wxCONSTRUCTOR_5( wxScrollBar , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
81 #else
82 IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
83 #endif
84
85 // Scrollbar
86 bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
87 const wxPoint& pos,
88 const wxSize& size, long style,
89 const wxValidator& wxVALIDATOR_PARAM(validator),
90 const wxString& name)
91 {
92 return false;
93 }
94
95 wxScrollBar::~wxScrollBar(void)
96 {
97 }
98
99 bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
100 WXWORD pos, WXHWND WXUNUSED(control))
101 {
102 return false;
103 }
104
105 void wxScrollBar::SetThumbPosition(int viewStart)
106 {
107 }
108
109 int wxScrollBar::GetThumbPosition(void) const
110 {
111 }
112
113 void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageSize,
114 bool refresh)
115 {
116 }
117
118
119 void wxScrollBar::Command(wxCommandEvent& event)
120 {
121 }
122
123 wxSize wxScrollBar::DoGetBestSize() const
124 {
125 return wxSize(0,0);
126 }
127
128 #endif // wxUSE_SCROLLBAR