X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..6695f8f8260b32219b42294531bfb7e2396cceef:/samples/widgets/choice.cpp 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))