X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e640f8231fbf0417f9ab5d378e7f218587cb6ac2..aafbc3454c88ffed16875c4e61dd33ac889b23c8:/samples/widgets/listbox.cpp diff --git a/samples/widgets/listbox.cpp b/samples/widgets/listbox.cpp index 43cb38118d..ca2773d805 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 @@ -491,20 +491,20 @@ void ListboxWidgetsPage::OnUpdateUIAddSeveral(wxUpdateUIEvent& event) void ListboxWidgetsPage::OnListbox(wxCommandEvent& event) { - int sel = event.GetInt(); + long sel = event.GetInt(); m_textDelete->SetValue(wxString::Format(_T("%ld"), sel)); - wxLogMessage(_T("Listbox item %d selected"), sel); + wxLogMessage(_T("Listbox item %ld selected"), sel); } void ListboxWidgetsPage::OnListboxDClick(wxCommandEvent& event) { - wxLogMessage(_T("Listbox item %d double clicked"), event.GetInt()); + wxLogMessage( _T("Listbox item %ld double clicked"), event.GetInt() ); } void ListboxWidgetsPage::OnCheckListbox(wxCommandEvent& event) { - wxLogMessage(_T("Listbox item %d toggled"), event.GetInt()); + wxLogMessage( _T("Listbox item %ld toggled"), event.GetInt() ); } void ListboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event) @@ -512,3 +512,4 @@ void ListboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event) CreateLbox(); } +#endif