wxCommandEvent event( wxEVT_COMMAND_RADIOBUTTON_SELECTED, rb->GetId());
event.SetInt( rb->GetValue() );
event.SetEventObject( rb );
- rb->GetEventHandler()->ProcessEvent( event );
+ rb->HandleWindowEvent( event );
}
}
// wxRadioButton
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton,wxControl)
-
bool wxRadioButton::Create( wxWindow *parent,
wxWindowID id,
const wxString& label,
if (!HasFlag(wxRB_GROUP))
{
// search backward for last group start
- wxRadioButton *chief = (wxRadioButton*) NULL;
+ wxRadioButton *chief = NULL;
wxWindowList::compatibility_iterator node = parent->GetChildren().GetLast();
while (node)
{