]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/radiobut.h
bitmap and image updates
[wxWidgets.git] / include / wx / os2 / radiobut.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobut.h
3// Purpose: wxRadioButton class
cdf1e714 4// Author: David Webster
0e320a79 5// Modified by:
cdf1e714 6// Created: 10/12/99
0e320a79 7// RCS-ID: $Id$
cdf1e714
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_RADIOBUT_H_
13#define _WX_RADIOBUT_H_
14
0e320a79
DW
15#include "wx/control.h"
16
17WXDLLEXPORT_DATA(extern const char*) wxRadioButtonNameStr;
18
19class WXDLLEXPORT wxRadioButton: public wxControl
20{
21 DECLARE_DYNAMIC_CLASS(wxRadioButton)
22 protected:
23 public:
24 inline wxRadioButton() {}
25 inline wxRadioButton(wxWindow *parent, wxWindowID id,
26 const wxString& label,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize, long style = 0,
57c4d796 29#if wxUSE_VALIDATORS
0e320a79 30 const wxValidator& validator = wxDefaultValidator,
57c4d796 31#endif
0e320a79
DW
32 const wxString& name = wxRadioButtonNameStr)
33 {
34 Create(parent, id, label, pos, size, style, validator, name);
35 }
36
37 bool Create(wxWindow *parent, wxWindowID id,
38 const wxString& label,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize, long style = 0,
57c4d796 41#if wxUSE_VALIDATORS
0e320a79 42 const wxValidator& validator = wxDefaultValidator,
57c4d796 43#endif
0e320a79
DW
44 const wxString& name = wxRadioButtonNameStr);
45
46 virtual void SetLabel(const wxString& label);
47 virtual void SetValue(bool val);
48 virtual bool GetValue() const ;
49
cdf1e714 50 bool OS2Command(WXUINT param, WXWORD id);
0e320a79
DW
51 void Command(wxCommandEvent& event);
52};
53
54// Not implemented
0e320a79
DW
55class WXDLLEXPORT wxBitmap ;
56
57WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
58
59class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
60{
61 DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
62 protected:
63 wxBitmap *theButtonBitmap;
64 public:
65 inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
66 inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
67 const wxBitmap *label,
68 const wxPoint& pos = wxDefaultPosition,
69 const wxSize& size = wxDefaultSize, long style = 0,
57c4d796 70#if wxUSE_VALIDATORS
0e320a79 71 const wxValidator& validator = wxDefaultValidator,
57c4d796 72#endif
0e320a79
DW
73 const wxString& name = wxBitmapRadioButtonNameStr)
74 {
75 Create(parent, id, label, pos, size, style, validator, name);
76 }
77
78 bool Create(wxWindow *parent, wxWindowID id,
79 const wxBitmap *label,
80 const wxPoint& pos = wxDefaultPosition,
81 const wxSize& size = wxDefaultSize, long style = 0,
57c4d796 82#if wxUSE_VALIDATORS
0e320a79 83 const wxValidator& validator = wxDefaultValidator,
57c4d796 84#endif
0e320a79
DW
85 const wxString& name = wxBitmapRadioButtonNameStr);
86
87 virtual void SetLabel(const wxBitmap *label);
88 virtual void SetValue(bool val) ;
89 virtual bool GetValue() const ;
cdf1e714
DW
90private:
91 // virtual function hiding suppression, do not use
92 virtual void SetLabel(const wxString& label)
93 { wxRadioButton::SetLabel(label); };
0e320a79 94};
0e320a79
DW
95
96#endif
97 // _WX_RADIOBUT_H_