1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "spinbutt.h"
14 #pragma implementation "spinctlg.h"
17 #include "wx/spinbutt.h"
18 #include "wx/spinctrl.h"
20 // put wxSpinCtrl here too because it doesn't have a separate file for it in
22 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton
, wxControl
)
23 IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl
, wxControl
)
24 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent
, wxNotifyEvent
)
26 bool wxSpinButton
::Create(wxWindow
*parent
, wxWindowID id
, const wxPoint
& WXUNUSED(pos
), const wxSize
& WXUNUSED(size
),
27 long style
, const wxString
& name
)
31 m_windowStyle
= style
;
33 if (parent
) parent
->AddChild(this);
37 m_windowId
= (id
== -1) ?
NewControlId() : id
;
39 // TODO create spin button
43 wxSpinButton
::~wxSpinButton()
48 ////////////////////////////////////////////////////////////////////////////
50 int wxSpinButton
::GetValue() const
56 void wxSpinButton
::SetValue(int WXUNUSED(val
))
61 void wxSpinButton
::SetRange(int minVal
, int maxVal
)
64 wxSpinButtonBase
::SetRange(minVal
, maxVal
);
67 void wxSpinButton
::ChangeFont(bool WXUNUSED(keepOriginalSize
))
72 void wxSpinButton
::ChangeBackgroundColour()
77 void wxSpinButton
::ChangeForegroundColour()