]>
Commit | Line | Data |
---|---|---|
2bda0e17 KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: spinbutt.h | |
3 | // Purpose: wxSpinButton class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
31528cd3 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_SPINBUTT_H_ |
13 | #define _WX_SPINBUTT_H_ | |
2bda0e17 KB |
14 | |
15 | #ifdef __GNUG__ | |
16 | #pragma interface "spinbutt.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/control.h" | |
20 | #include "wx/event.h" | |
21 | ||
22 | #if defined(__WIN95__) | |
23 | ||
2bda0e17 | 24 | |
31528cd3 | 25 | class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase |
2bda0e17 | 26 | { |
aeafc354 VZ |
27 | DECLARE_DYNAMIC_CLASS(wxSpinButton) |
28 | ||
29 | public: | |
30 | /* | |
31 | * Public interface | |
32 | */ | |
5ea47806 | 33 | wxSpinButton() { } |
a23fd0e1 | 34 | |
aeafc354 VZ |
35 | wxSpinButton(wxWindow *parent, |
36 | wxWindowID id = -1, | |
37 | const wxPoint& pos = wxDefaultPosition, | |
38 | const wxSize& size = wxDefaultSize, | |
39 | long style = wxSP_VERTICAL | wxSP_ARROW_KEYS, | |
40 | const wxString& name = "wxSpinButton") | |
41 | { | |
42 | Create(parent, id, pos, size, style, name); | |
43 | } | |
a23fd0e1 | 44 | |
aeafc354 | 45 | virtual ~wxSpinButton(); |
a23fd0e1 | 46 | |
aeafc354 VZ |
47 | bool Create(wxWindow *parent, |
48 | wxWindowID id = -1, | |
49 | const wxPoint& pos = wxDefaultPosition, | |
50 | const wxSize& size = wxDefaultSize, | |
a23fd0e1 | 51 | long style = wxSP_VERTICAL | wxSP_ARROW_KEYS, |
aeafc354 | 52 | const wxString& name = "wxSpinButton"); |
a23fd0e1 VZ |
53 | |
54 | ||
0655ad29 | 55 | // accessors |
31528cd3 VZ |
56 | virtual int GetValue() const; |
57 | virtual void SetValue(int val); | |
58 | virtual void SetRange(int minVal, int maxVal); | |
a23fd0e1 | 59 | |
0655ad29 | 60 | // implementation |
aeafc354 | 61 | virtual bool MSWCommand(WXUINT param, WXWORD id); |
0655ad29 | 62 | virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); |
a23fd0e1 VZ |
63 | virtual bool MSWOnScroll(int orientation, WXWORD wParam, |
64 | WXWORD pos, WXHWND control); | |
2bda0e17 KB |
65 | }; |
66 | ||
2bda0e17 | 67 | #endif |
bbcdf8bc | 68 | // _WX_WIN95__ |
2bda0e17 | 69 | #endif |
bbcdf8bc | 70 | // _WX_SPINBUTT_H_ |