button is deselected in response to another in the same group being
selected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34603
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
// if already set -> no action
if ( GetValue() )
{
// if already set -> no action
if ( GetValue() )
- wxRadioButton *cycle, *old = NULL ;
cycle=this->NextInCycle();
if (cycle!=NULL) {
cycle=this->NextInCycle();
if (cycle!=NULL) {
if ( cycle->GetValue() ) {
if ( cycle->GetValue() ) {
- }
- cycle=cycle->NextInCycle();
+ cycle=cycle->NextInCycle();
+ }
- if ( old ) {
- wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, old->m_windowId );
- event.SetEventObject(old);
- event.SetInt( false );
- old->ProcessCommand(event);
- }
wxCommandEvent event2(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId );
event2.SetEventObject(this);
event2.SetInt( true );
wxCommandEvent event2(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId );
event2.SetEventObject(this);
event2.SetInt( true );