X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..02fd8b9b6186623ed61019ac7e69ed9a4ef16773:/samples/widgets/choice.cpp?ds=sidebyside diff --git a/samples/widgets/choice.cpp b/samples/widgets/choice.cpp index 872c91a741..9ea271d3d5 100644 --- a/samples/widgets/choice.cpp +++ b/samples/widgets/choice.cpp @@ -272,7 +272,7 @@ void ChoiceWidgetsPage::CreateContent() // right pane wxSizer *sizerRight = new wxBoxSizer(wxVERTICAL); m_choice = new wxChoice(this, ChoicePage_Choice); - sizerRight->Add(m_choice, 1, wxGROW | wxALL, 5); + sizerRight->Add(m_choice, 0, wxALL | wxGROW, 5); sizerRight->SetMinSize(150, 0); m_sizerChoice = sizerRight; // save it to modify it later @@ -439,10 +439,7 @@ void ChoiceWidgetsPage::OnChoice(wxCommandEvent& event) long sel = event.GetSelection(); m_textDelete->SetValue(wxString::Format(_T("%ld"), sel)); - if (event.IsSelection()) - wxLogMessage(_T("Choice item %ld selected"), sel); - else - wxLogMessage(_T("Choice item %ld deselected"), sel); + wxLogMessage(_T("Choice item %ld selected"), sel); } void ChoiceWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))