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
This commit is contained in:
Vadim Zeitlin
2000-09-05 18:26:43 +00:00
parent fa711ca3ea
commit 130641a308

View File

@@ -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;
}
}