From 130641a308b0c38ee2cd28367c1386eb42790c09 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 5 Sep 2000 18:26:43 +0000 Subject: [PATCH] toggle doesn't mean set git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index dd17179cf7..f98b5ff359 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -594,10 +594,10 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) wxPanel *panel = new wxPanel(m_notebook); m_listbox = new wxListBox( panel, ID_LISTBOX, wxPoint(10,10), wxSize(120,70), - 5, choices, wxLB_ALWAYS_SB ); + 2, choices, wxLB_ALWAYS_SB | wxLB_EXTENDED ); m_listboxSorted = new wxListBox( panel, ID_LISTBOX_SORTED, wxPoint(10,90), wxSize(120,70), - 5, choices, wxLB_SORT ); + 5, choices, wxLB_SORT | wxLB_MULTIPLE); SetControlClientData("listbox", m_listbox); SetControlClientData("listbox", m_listboxSorted); @@ -1031,7 +1031,7 @@ void MyPanel::OnListBoxButtons( wxCommandEvent &event ) } case ID_LISTBOX_TOGGLE: { - m_checkbox->SetValue( TRUE ); + m_checkbox->SetValue( !m_checkbox->GetValue() ); break; } }