]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
16 #pragma interface "spinbutt.h"
19 class WXDLLEXPORT wxSpinButton
: public wxSpinButtonBase
21 DECLARE_DYNAMIC_CLASS(wxSpinButton
)
26 wxSpinButton(wxWindow
*parent
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
30 long style
= wxSP_VERTICAL
,
31 const wxString
& name
= "wxSpinButton")
33 Create(parent
, id
, pos
, size
, style
, name
);
37 bool Create(wxWindow
*parent
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxSP_VERTICAL
,
42 const wxString
& name
= "wxSpinButton");
47 int GetMin() const { return m_min
; }
48 int GetMax() const { return m_max
; }
51 void SetValue(int val
);
52 void SetRange(int minVal
, int maxVal
);
55 virtual void Command(wxCommandEvent
& event
) { (void)ProcessCommand(event
); };
56 virtual void ChangeFont(bool keepOriginalSize
= TRUE
);
57 virtual void ChangeBackgroundColour();
58 virtual void ChangeForegroundColour();