]>
git.saurik.com Git - wxWidgets.git/blob - src/motif/spinbutt.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "spinbutt.h"
16 #include "wx/spinbutt.h"
18 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton
, wxControl
)
20 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent
, wxScrollEvent
);
23 bool wxSpinButton::Create(wxWindow
*parent
, wxWindowID id
, const wxPoint
& pos
, const wxSize
& size
,
24 long style
, const wxString
& name
)
28 m_windowStyle
= style
;
30 if (parent
) parent
->AddChild(this);
34 m_windowId
= (id
== -1) ? NewControlId() : id
;
36 // TODO create spin button
40 wxSpinButton::~wxSpinButton()
45 ////////////////////////////////////////////////////////////////////////////
47 int wxSpinButton::GetValue() const
53 void wxSpinButton::SetValue(int val
)
58 void wxSpinButton::SetRange(int minVal
, int maxVal
)
61 wxSpinButtonBase::SetRange(minVal
, maxVal
);
64 void wxSpinButton::ChangeFont(bool keepOriginalSize
)
69 void wxSpinButton::ChangeBackgroundColour()
74 void wxSpinButton::ChangeForegroundColour()