]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/radiobox.cpp
Applied patch for non-Latin keyboards.
[wxWidgets.git] / src / mac / radiobox.cpp
index 3f3279dd0457e83bb823ad93903eaa761924623d..b18f098d3c4197e811a6c974acbddbda93a67f81 100644 (file)
@@ -32,6 +32,19 @@ IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
 //             ¥ wxRadioBox()
 //-------------------------------------------------------------------------------------
 // Default constructor
+BEGIN_EVENT_TABLE(wxRadioBox, wxControl)
+EVT_RADIOBUTTON( -1 , wxRadioBox::OnRadioButton )
+END_EVENT_TABLE()
+
+void wxRadioBox::OnRadioButton( wxCommandEvent &outer )
+{
+    wxCommandEvent event(wxEVT_COMMAND_RADIOBOX_SELECTED, m_windowId);
+    int i = GetSelection() ;
+    event.SetInt( i );
+    event.SetString( GetString( i ) );
+    event.SetEventObject( this );
+    ProcessCommand(event);
+}
 
 wxRadioBox::wxRadioBox()
 {