]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/spinbutt.h
Small changes
[wxWidgets.git] / include / wx / os2 / spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/15/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
14
15 #include "wx/control.h"
16 #include "wx/event.h"
17
18 class WXDLLEXPORT wxSpinButton: public wxControl
19 {
20 public:
21 // Construction
22 wxSpinButton() { }
23
24 inline wxSpinButton( wxWindow *parent
25 ,wxWindowID id = -1
26 ,const wxPoint& pos = wxDefaultPosition
27 ,const wxSize& size = wxDefaultSize
28 ,long style = wxSP_VERTICAL
29 ,const wxString& name = "wxSpinButton"
30 )
31 {
32 Create(parent, id, pos, size, style, name);
33 }
34
35 virtual ~wxSpinButton();
36
37 bool Create( wxWindow *parent
38 ,wxWindowID id = -1
39 ,const wxPoint& pos = wxDefaultPosition
40 ,const wxSize& size = wxDefaultSize
41 ,long style = wxSP_VERTICAL
42 ,const wxString& name = "wxSpinButton"
43 );
44
45 // Accessors
46 virtual int GetValue() const ;
47 virtual void SetValue(int val) ;
48 virtual void SetRange( int minVal
49 ,int maxVal
50 );
51
52 // Implementation
53 virtual bool OS2Command( WXUINT param
54 ,WXWORD id
55 );
56 virtual bool OS2OnNotify( int idCtrl
57 ,WXLPARAM lParam
58 ,WXLPARAM* result
59 );
60 virtual bool OS2OnScroll( int orientation
61 ,WXWORD wParam
62 ,WXWORD pos
63 ,WXHWND control
64 );
65
66 protected:
67 virtual wxSize DoGetBestSize();
68 private:
69 DECLARE_DYNAMIC_CLASS(wxSpinButton)
70 };
71 #endif
72 // _WX_SPINBUTT_H_