]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/radiobox.cpp
Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target...
[wxWidgets.git] / src / univ / radiobox.cpp
index ac606d1cd3bcf011dab6861d5b6adafe5c408a81..b468f61fce9137657e7989f69dd4ee4b52cc775a 100644 (file)
@@ -63,7 +63,7 @@ public:
     virtual bool ProcessEvent(wxEvent& event)
     {
         // we intercept the command events from radio buttons
     virtual bool ProcessEvent(wxEvent& event)
     {
         // we intercept the command events from radio buttons
-        if ( event.GetEventType() == wxEVT_COMMAND_RADIOBUTTON_SELECTED )
+        if ( event.GetEventType() == wxEVT_RADIOBUTTON )
         {
             m_radio->OnRadioButton(event);
         }
         {
             m_radio->OnRadioButton(event);
         }
@@ -261,7 +261,7 @@ void wxRadioBox::SendRadioEvent()
 {
     wxCHECK_RET( m_selection != -1, wxT("no active radio button") );
 
 {
     wxCHECK_RET( m_selection != -1, wxT("no active radio button") );
 
-    wxCommandEvent event(wxEVT_COMMAND_RADIOBOX_SELECTED, GetId());
+    wxCommandEvent event(wxEVT_RADIOBOX, GetId());
     InitCommandEvent(event);
     event.SetInt(m_selection);
     event.SetString(GetString(m_selection));
     InitCommandEvent(event);
     event.SetInt(m_selection);
     event.SetString(GetString(m_selection));