* Implement GetValue() and SetValue().

* Send event when clicked.
* Implement radio button grouping.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-08-18 18:27:48 +00:00
parent a0c6a355b7
commit d0a5e34a08
2 changed files with 95 additions and 3 deletions

View File

@@ -14,6 +14,10 @@
#include "wx/cocoa/NSButton.h"
class WXDLLEXPORT wxRadioButton;
WX_DECLARE_LIST(wxRadioButton, wxRadioButtonList);
// ========================================================================
// wxRadioButton
// ========================================================================
@@ -26,7 +30,7 @@ class WXDLLEXPORT wxRadioButton: public wxControl, protected wxCocoaNSButton
// initialization
// ------------------------------------------------------------------------
public:
wxRadioButton() { }
wxRadioButton() { m_radioMaster = NULL; }
wxRadioButton(wxWindow *parent, wxWindowID winid,
const wxString& label,
const wxPoint& pos = wxDefaultPosition,
@@ -58,6 +62,9 @@ protected:
public:
virtual void SetValue(bool);
virtual bool GetValue() const;
protected:
wxRadioButtonList m_radioSlaves;
wxRadioButton *m_radioMaster;
};
#endif // __WX_COCOA_RADIOBUT_H__