]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/radiobut.cpp
Removed TABs that had gotten in to the source
[wxWidgets.git] / src / mac / radiobut.cpp
index aff004469bfd5ab440f824930cf0816763a80ecc..84f2a739cbf139a98d23f2f72ca9071acbbecebd 100644 (file)
@@ -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);
 }