]> git.saurik.com Git - wxWidgets.git/blame - src/stubs/scrolbar.cpp
Chnages to mono-bitmap code.
[wxWidgets.git] / src / stubs / scrolbar.cpp
CommitLineData
93cf77c0
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: scrolbar.cpp
3// Purpose: wxScrollBar
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "scrolbar.h"
14#endif
15
16#include "wx/scrolbar.h"
17
93cf77c0
JS
18IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
19
93cf77c0
JS
20
21// Scrollbar
22bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
23 const wxPoint& pos,
24 const wxSize& size, long style,
25 const wxValidator& validator,
26 const wxString& name)
27{
28 if (!parent)
29 return FALSE;
30 parent->AddChild(this);
31 SetName(name);
32 SetValidator(validator);
33
34 m_windowStyle = style;
35
36 if ( id == -1 )
37 m_windowId = (int)NewControlId();
38 else
39 m_windowId = id;
40
41 // TODO create scrollbar
42 return TRUE;
43}
44
45wxScrollBar::~wxScrollBar()
46{
47}
48
4fabb575 49void wxScrollBar::SetThumbPosition(int viewStart)
93cf77c0
JS
50{
51 // TODO
52}
53
4fabb575 54int wxScrollBar::GetThumbPosition() const
93cf77c0
JS
55{
56 // TODO
57 return 0;
58}
59
60void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageSize,
61 bool refresh)
62{
63 m_viewSize = pageSize;
64 m_pageSize = thumbSize;
65 m_objectSize = range;
66
67 // TODO
68}
69
70
71void wxScrollBar::Command(wxCommandEvent& event)
72{
c0ed460c 73 SetThumbPosition(event.m_commandInt);
93cf77c0
JS
74 ProcessCommand(event);
75}
76