]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/spinctrl.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/spinctrl.h
3 // Purpose: wxSpinCtrl class declaration for Win32
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSW_SPINCTRL_H_
13 #define _WX_MSW_SPINCTRL_H_
15 #include "wx/spinbutt.h" // the base class
17 // ----------------------------------------------------------------------------
18 // Under Win32 and OS2 PM, wxSpinCtrl is a wxSpinButton with a buddy
19 // text window whose contents is automatically updated when the spin
20 // control is clicked.
21 // ----------------------------------------------------------------------------
23 class WXDLLEXPORT wxSpinCtrl
: public wxSpinButton
28 wxSpinCtrl(wxWindow
*parent
,
30 const wxString
& value
= wxEmptyString
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxSP_ARROW_KEYS
,
34 int min
= 0, int max
= 100, int initial
= 0,
35 const wxString
& name
= _T("wxSpinCtrl"))
37 Create(parent
, id
, value
, pos
, size
, style
, min
, max
, initial
, name
);
40 bool Create(wxWindow
*parent
,
42 const wxString
& value
= wxEmptyString
,
43 const wxPoint
& pos
= wxDefaultPosition
,
44 const wxSize
& size
= wxDefaultSize
,
45 long style
= wxSP_ARROW_KEYS
,
46 int min
= 0, int max
= 100, int initial
= 0,
47 const wxString
& name
= _T("wxSpinCtrl"));
50 void DoMoveWindow(int x
, int y
, int width
, int height
);
54 DECLARE_DYNAMIC_CLASS(wxSpinCtrl
)
57 #endif // _WX_MSW_SPINCTRL_H_