diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index f98b5ff359..7854eb8c6c 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), - 2, choices, wxLB_ALWAYS_SB | wxLB_EXTENDED ); + 5, choices); m_listboxSorted = new wxListBox( panel, ID_LISTBOX_SORTED, wxPoint(10,90), wxSize(120,70), - 5, choices, wxLB_SORT | wxLB_MULTIPLE); + 5, choices, wxLB_SORT); SetControlClientData("listbox", m_listbox); SetControlClientData("listbox", m_listboxSorted);