]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
15 #include "wx/control.h"
18 class WXDLLEXPORT wxSpinButton
: public wxSpinButtonBase
24 inline wxSpinButton( wxWindow
*parent
26 ,const wxPoint
& pos
= wxDefaultPosition
27 ,const wxSize
& size
= wxDefaultSize
28 ,long style
= wxSP_VERTICAL
29 ,const wxString
& name
= "wxSpinButton"
32 Create(parent
, id
, pos
, size
, style
, name
);
35 virtual ~wxSpinButton();
37 bool Create( wxWindow
*parent
39 ,const wxPoint
& pos
= wxDefaultPosition
40 ,const wxSize
& size
= wxDefaultSize
41 ,long style
= wxSP_VERTICAL
42 ,const wxString
& name
= "wxSpinButton"
46 virtual int GetValue() const ;
47 virtual void SetValue(int val
) ;
48 virtual void SetRange( int minVal
53 virtual bool OS2Command( WXUINT param
56 virtual bool OS2OnNotify( int idCtrl
60 virtual bool OS2OnScroll( int orientation
67 virtual wxSize
DoGetBestSize() const;
69 DECLARE_DYNAMIC_CLASS(wxSpinButton
)