/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/include/wx/msw/radiobut.h
ViewVC logotype

Contents of /trunk/3rdparty/wxWidgets/include/wx/msw/radiobut.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 2272 byte(s)
exported r3113 from ./upstream/trunk
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: radiobut.h
3 // Purpose: wxRadioButton class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id: radiobut.h 41144 2006-09-10 23:08:13Z VZ $
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_RADIOBUT_H_
13 #define _WX_RADIOBUT_H_
14
15 class WXDLLEXPORT wxRadioButton: public wxControl
16 {
17 public:
18 // ctors and creation functions
19 wxRadioButton() { Init(); }
20
21 wxRadioButton(wxWindow *parent,
22 wxWindowID id,
23 const wxString& label,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxRadioButtonNameStr)
29 {
30 Init();
31
32 Create(parent, id, label, pos, size, style, validator, name);
33 }
34
35 bool Create(wxWindow *parent,
36 wxWindowID id,
37 const wxString& label,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = 0,
41 const wxValidator& validator = wxDefaultValidator,
42 const wxString& name = wxRadioButtonNameStr);
43
44 // implement the radio button interface
45 virtual void SetValue(bool value);
46 virtual bool GetValue() const;
47
48 // implementation only from now on
49 virtual bool MSWCommand(WXUINT param, WXWORD id);
50 virtual void Command(wxCommandEvent& event);
51 virtual bool HasTransparentBackground() { return true; }
52
53 virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
54
55 protected:
56 virtual wxSize DoGetBestSize() const;
57
58 private:
59 // common part of all ctors
60 void Init();
61
62 // we need to store the state internally as the result of GetValue()
63 // sometimes gets out of sync in WM_COMMAND handler
64 bool m_isChecked;
65
66 DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton)
67 };
68
69 #endif
70 // _WX_RADIOBUT_H_

  ViewVC Help
Powered by ViewVC 1.1.22