]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
16 #pragma interface "spinbutt.h"
19 #include "wx/control.h"
23 The wxSpinButton is like a small scrollbar than is often placed next
26 wxSP_HORIZONTAL: horizontal spin button
27 wxSP_VERTICAL: vertical spin button (the default)
28 wxSP_ARROW_KEYS: arrow keys increment/decrement value
29 wxSP_WRAP: value wraps at either end
32 class WXDLLEXPORT wxSpinButton
: public wxSpinButtonBase
38 wxSpinButton(wxWindow
*parent
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
43 const wxString
& name
= "wxSpinButton")
45 Create(parent
, id
, pos
, size
, style
, name
);
48 virtual ~wxSpinButton();
50 bool Create(wxWindow
*parent
,
52 const wxPoint
& pos
= wxDefaultPosition
,
53 const wxSize
& size
= wxDefaultSize
,
54 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
55 const wxString
& name
= "wxSpinButton");
59 virtual int GetMin() const;
60 virtual int GetMax() const;
61 virtual int GetValue() const;
62 virtual void SetValue(int val
);
63 virtual void SetRange(int minVal
, int maxVal
);
67 virtual void MacHandleControlClick( ControlHandle control
, SInt16 controlpart
) ;
70 virtual wxSize
DoGetBestSize() const;
74 DECLARE_DYNAMIC_CLASS(wxSpinButton
)