]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/spinbutt.h
add a radio box to select the combobox type (#9845)
[wxWidgets.git] / include / wx / palmos / spinbutt.h
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e1d63b79 2// Name: wx/palmos/spinbutt.h
ffecfa5a 3// Purpose: wxSpinButton class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a 5// Modified by:
e1d63b79 6// Created: 10/13/04
ffecfa5a 7// RCS-ID: $Id$
e1d63b79 8// Copyright: (c) William Osborne
ffecfa5a
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_SPINBUTT_H_
13#define _WX_SPINBUTT_H_
14
ffecfa5a
JS
15#include "wx/control.h"
16#include "wx/event.h"
17
53a2db12 18class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase
ffecfa5a
JS
19{
20public:
21 // construction
22 wxSpinButton() { }
23
24 wxSpinButton(wxWindow *parent,
5445a26c 25 wxWindowID id = wxID_ANY,
ffecfa5a
JS
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
29 const wxString& name = wxSPIN_BUTTON_NAME)
30 {
31 Create(parent, id, pos, size, style, name);
32 }
33
34 virtual ~wxSpinButton();
35
36 bool Create(wxWindow *parent,
5445a26c 37 wxWindowID id = wxID_ANY,
ffecfa5a
JS
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
41 const wxString& name = wxSPIN_BUTTON_NAME);
42
43
44 // accessors
45 virtual int GetValue() const;
46 virtual void SetValue(int val);
47 virtual void SetRange(int minVal, int maxVal);
48
ffecfa5a 49 // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
5445a26c 50 virtual bool AcceptsFocus() const { return false; }
ffecfa5a
JS
51
52protected:
53 virtual wxSize DoGetBestSize() const;
54
55private:
56 DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinButton)
57};
58
59#endif
60 // _WX_SPINBUTT_H_