X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2d49353d4ac77775d5c513e55940175458faa1c..3285ee538be44537a0d4e43252db18f5e7362782:/contrib/samples/gizmos/editlbox/test.cpp diff --git a/contrib/samples/gizmos/editlbox/test.cpp b/contrib/samples/gizmos/editlbox/test.cpp index f3a612df32..3620a451de 100644 --- a/contrib/samples/gizmos/editlbox/test.cpp +++ b/contrib/samples/gizmos/editlbox/test.cpp @@ -29,13 +29,13 @@ bool MyApp::OnInit() wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER); wxSizer *sizer = new wxBoxSizer(wxVERTICAL); - sizer->Add(new wxEditableListBox(&dlg, wxID_ANY, _("Match these wildcards:"), + sizer->Add(new wxEditableListBox(&dlg, wxID_ANY, _("Match these wildcards:"), wxDefaultPosition,wxSize(300,200)), 1, wxEXPAND|wxALL, 10); - + sizer->Add(5,5); - wxEditableListBox *lb = new wxEditableListBox(&dlg, wxID_ANY, _("Except:"), + wxEditableListBox *lb = new wxEditableListBox(&dlg, wxID_ANY, _("Except:"), wxDefaultPosition,wxSize(300,200)); wxArrayString ar; ar.Add(_T("*.cpp")); @@ -46,13 +46,12 @@ bool MyApp::OnInit() sizer->Add(lb, 1, wxEXPAND|wxALL, 10); sizer->Add(5,5); - + sizer->Add(new wxButton(&dlg, wxID_OK, _("OK")), 0, wxALIGN_RIGHT | wxALL, 10); - dlg.SetAutoLayout(true); dlg.SetSizer(sizer); sizer->Fit(&dlg); dlg.Centre(); - + dlg.ShowModal(); wxString res = _("'Except' contains these strings:\n\n"); @@ -60,6 +59,6 @@ bool MyApp::OnInit() for (size_t i = 0; i < ar.GetCount(); i++) res << ar[i] << _T("\n"); wxMessageBox(res); - + return false; }