git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29687
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( event.GetText() != control->GetLabel() )
control->SetLabel(event.GetText());
}
if ( event.GetText() != control->GetLabel() )
control->SetLabel(event.GetText());
}
+ }
+#endif // wxUSE_CONTROLS
+
+ if ( event.GetSetChecked() )
+ {
#if wxUSE_CHECKBOX
wxCheckBox *checkbox = wxDynamicCastThis(wxCheckBox);
if ( checkbox )
{
#if wxUSE_CHECKBOX
wxCheckBox *checkbox = wxDynamicCastThis(wxCheckBox);
if ( checkbox )
{
- if ( event.GetSetChecked() )
- checkbox->SetValue(event.GetChecked());
+ checkbox->SetValue(event.GetChecked());
}
#endif // wxUSE_CHECKBOX
}
#endif // wxUSE_CHECKBOX
wxRadioButton *radiobtn = wxDynamicCastThis(wxRadioButton);
if ( radiobtn )
{
wxRadioButton *radiobtn = wxDynamicCastThis(wxRadioButton);
if ( radiobtn )
{
- if ( event.GetSetChecked() )
- radiobtn->SetValue(event.GetChecked());
+ radiobtn->SetValue(event.GetChecked());
}
#endif // wxUSE_RADIOBTN
}
}
#endif // wxUSE_RADIOBTN
}