]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
15 #include "wx/control.h"
18 class WXDLLEXPORT wxSpinButton
: public wxSpinButtonBase
24 wxSpinButton(wxWindow
*parent
,
25 wxWindowID id
= wxID_ANY
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
29 const wxString
& name
= wxSPIN_BUTTON_NAME
)
31 Create(parent
, id
, pos
, size
, style
, name
);
34 virtual ~wxSpinButton();
36 bool Create(wxWindow
*parent
,
37 wxWindowID id
= wxID_ANY
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
40 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
41 const wxString
& name
= wxSPIN_BUTTON_NAME
);
45 virtual int GetValue() const;
46 virtual void SetValue(int val
);
47 virtual void SetRange(int minVal
, int maxVal
);
49 // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
50 virtual bool AcceptsFocus() const { return false; }
53 virtual wxSize
DoGetBestSize() const;
56 DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinButton
)