X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e173f35d2a8177371d13d059d9f897e2c4f98be..32b70aec1ff90877ae0ce2ce82967f698218fbdc:/samples/widgets/listbox.cpp diff --git a/samples/widgets/listbox.cpp b/samples/widgets/listbox.cpp index 7541db358b..dc145a7757 100644 --- a/samples/widgets/listbox.cpp +++ b/samples/widgets/listbox.cpp @@ -42,7 +42,7 @@ #include "wx/checklst.h" #include "widgets.h" - +#if 1 #include "icons/listbox.xpm" // ---------------------------------------------------------------------------- @@ -292,7 +292,7 @@ ListboxWidgetsPage::ListboxWidgetsPage(wxNotebook *notebook, 0, NULL, wxLB_HSCROLL); sizerRight->Add(m_lbox, 1, wxGROW | wxALL, 5); - sizerRight->SetMinSize(250, 0); + sizerRight->SetMinSize(150, 0); m_sizerLbox = sizerRight; // save it to modify it later // the 3 panes panes compose the window @@ -355,6 +355,7 @@ void ListboxWidgetsPage::CreateLbox() delete m_lbox; } +#if wxUSE_CHECKLISTBOX if ( m_chkCheck->GetValue() ) { m_lbox = new wxCheckListBox(this, ListboxPage_Listbox, @@ -363,6 +364,7 @@ void ListboxWidgetsPage::CreateLbox() flags); } else // just a listbox +#endif { m_lbox = new wxListBox(this, ListboxPage_Listbox, wxDefaultPosition, wxDefaultSize, @@ -510,3 +512,4 @@ void ListboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event) CreateLbox(); } +#endif \ No newline at end of file