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