]>
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 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton
, wxControl
)
19 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent
, wxNotifyEvent
)
21 bool wxSpinButton::Create(wxWindow
*parent
, wxWindowID id
, const wxPoint
& WXUNUSED(pos
), const wxSize
& WXUNUSED(size
),
22 long style
, const wxString
& name
)
26 m_windowStyle
= style
;
28 if (parent
) parent
->AddChild(this);
32 m_windowId
= (id
== -1) ? NewControlId() : id
;
34 // TODO create spin button
38 wxSpinButton::~wxSpinButton()
43 ////////////////////////////////////////////////////////////////////////////
45 int wxSpinButton::GetValue() const
51 void wxSpinButton::SetValue(int WXUNUSED(val
))
56 void wxSpinButton::SetRange(int minVal
, int maxVal
)
59 wxSpinButtonBase::SetRange(minVal
, maxVal
);
62 void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize
))
67 void wxSpinButton::ChangeBackgroundColour()
72 void wxSpinButton::ChangeForegroundColour()