]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/spinbutt.h
textctrl is now coded.
[wxWidgets.git] / include / wx / os2 / spinbutt.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: spinbutt.h
3// Purpose: wxSpinButton class
409c9842 4// Author: David Webster
0e320a79 5// Modified by:
409c9842 6// Created: 10/15/99
0e320a79 7// RCS-ID: $Id$
409c9842
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_SPINBUTT_H_
13#define _WX_SPINBUTT_H_
14
0e320a79
DW
15#include "wx/control.h"
16#include "wx/event.h"
17
f61715c8 18class WXDLLEXPORT wxSpinButton: public wxSpinButtonBase
0e320a79 19{
409c9842
DW
20public:
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
e78c4d50 52 // Implementation
409c9842
DW
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 );
0e320a79
DW
65
66protected:
e78c4d50 67 virtual wxSize DoGetBestSize() const;
409c9842
DW
68private:
69 DECLARE_DYNAMIC_CLASS(wxSpinButton)
0e320a79 70};
0e320a79
DW
71#endif
72 // _WX_SPINBUTT_H_