From 03e172339cda4c83e8cec6894b713181882a893b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Wed, 23 Jun 1999 14:31:49 +0000 Subject: [PATCH] improved dialog size which created the listbox a bit too small git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/choicdgg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/choicdgg.cpp b/src/generic/choicdgg.cpp index 2529df3ccd..f5bbca706f 100644 --- a/src/generic/choicdgg.cpp +++ b/src/generic/choicdgg.cpp @@ -248,9 +248,9 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent), const wxString& m int y = message_size.y + 15; - int listbox_height = wxMin( 160, n*20 ); + int listbox_height = wxMin( 160, n*20 + 40); - wxListBox *listBox = new wxListBox( this, wxID_LISTBOX, wxPoint(10, y), wxSize(240, listbox_height), + wxListBox *listBox = new wxListBox( this, wxID_LISTBOX, wxPoint(10, y), wxSize(340, listbox_height), n, choices, wxLB_ALWAYS_SB ); listBox->SetSelection( m_selection ); if (clientData) -- 2.45.2