// implementation
// ============================================================================
-IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
-
// ----------------------------------------------------------------------------
// wxRadioButton
// ----------------------------------------------------------------------------
void wxRadioButton::SendEvent()
{
- wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, GetId());
+ wxCommandEvent event(wxEVT_RADIOBUTTON, GetId());
InitCommandEvent(event);
event.SetInt(IsChecked());
Command(event);
wxSize wxRadioButton::GetBitmapSize() const
{
wxBitmap bmp = GetBitmap(State_Normal, Status_Checked);
- return bmp.Ok() ? wxSize(bmp.GetWidth(), bmp.GetHeight())
+ return bmp.IsOk() ? wxSize(bmp.GetWidth(), bmp.GetHeight())
: GetRenderer()->GetRadioBitmapSize();
}