// Author: Julian Smart
// Modified by:
// Created: 17/09/98
-// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
void wxRadioButtonCallback (Widget w, XtPointer clientData,
XmToggleButtonCallbackStruct * cbs);
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
-
wxRadioButton::wxRadioButton()
{
}
else
{
/* search backward for last group start */
- wxRadioButton *chief = (wxRadioButton*) NULL;
+ wxRadioButton *chief = NULL;
wxWindowList::compatibility_iterator node = parent->GetChildren().GetLast();
while (node)
{
if ( old )
{
- wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED,
+ wxCommandEvent event(wxEVT_RADIOBUTTON,
old->GetId() );
event.SetEventObject(old);
event.SetInt( false );
old->ProcessCommand(event);
}
- wxCommandEvent event2(wxEVT_COMMAND_RADIOBUTTON_SELECTED, item->GetId() );
+ wxCommandEvent event2(wxEVT_RADIOBUTTON, item->GetId() );
event2.SetEventObject(item);
event2.SetInt( true );
item->ProcessCommand(event2);