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