X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a67a93b17c37c018f60e662645ee2a44ba4e58e..9082f1a970e72765544a23b6f0b3481011ddca15:/src/mac/radiobut.cpp?ds=sidebyside diff --git a/src/mac/radiobut.cpp b/src/mac/radiobut.cpp index aff004469b..84f2a739cb 100644 --- a/src/mac/radiobut.cpp +++ b/src/mac/radiobut.cpp @@ -37,6 +37,8 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id, MacPostControlCreate() ; + m_cycle = this ; + if (HasFlag(wxRB_GROUP)) { AddInCycle( NULL ) ; @@ -96,6 +98,7 @@ void wxRadioButton::MacHandleControlClick( ControlHandle control , SInt16 contro SetValue(true) ; wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId ); event.SetEventObject(this); + event.SetInt( GetValue() ); ProcessCommand(event); }