Changeset 56221

Show
Ignore:
Timestamp:
10/10/08 13:56:45 (6 weeks ago)
Author:
FM
Message:

fixed the status of the second radio button; now (on wxGTK at least) it appears correctly as unchecked

Location:
wxWidgets/trunk/utils/screenshotgen/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/utils/screenshotgen/src/guidesign.fbp

    r56149 r56221  
    578578                                            <property name="pos"></property> 
    579579                                            <property name="size"></property> 
    580                                             <property name="style"></property> 
     580                                            <property name="style">wxRB_GROUP</property> 
    581581                                            <property name="subclass"></property> 
    582582                                            <property name="tooltip">wxRadioButton</property> 
  • wxWidgets/trunk/utils/screenshotgen/src/guiframe.cpp

    r56149 r56221  
    117117        fgSizer1->Add( m_checkBox2, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 20 ); 
    118118         
    119         m_radioBtn1 = new wxRadioButton( m_panel1, wxID_ANY, _("Checked"), wxDefaultPosition, wxDefaultSize, 0 ); 
     119        m_radioBtn1 = new wxRadioButton( m_panel1, wxID_ANY, _("Checked"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); 
    120120        m_radioBtn1->SetValue( true );  
    121121        m_radioBtn1->SetToolTip( _("wxRadioButton") ); 
  • wxWidgets/trunk/utils/screenshotgen/src/screenshot_main.cpp

    r56149 r56221  
    7878 
    7979    Those customizations will be done here. 
     80 
     81 
     82    NB: under wxGTK for the radio button "unchecked" to be unchecked, it's 
     83        important to put the wxRB_GROUP style on the first wxRadioButton 
     84        (the one "checked") and no flags on the second one. 
    8085*/ 
    8186void ScreenshotFrame::InitFBControls() 
    8287{ 
    83     // explicitely uncheck radio button: 
    84     m_radioBtn2->SetValue(false); 
    85  
    8688    // For some reason, wxFormBuilder does not set the scrollbar range 
    8789    m_scrollBar1->SetScrollbar(50, 1, 100, 1);