]> git.saurik.com Git - wxWidgets.git/commitdiff
don't limit the multiple choice dialog size to 300x200 pixels on big screens, this...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 21 Aug 2007 16:42:17 +0000 (16:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 21 Aug 2007 16:42:17 +0000 (16:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicdgg.cpp

index d037f6255d2f41bcd442625a141d51967fcc2303..fa3c19415bd479884041a577aa1afad3f2e54114 100644 (file)
@@ -302,11 +302,8 @@ bool wxAnyChoiceDialog::Create(wxWindow *parent,
 
 wxListBoxBase *wxAnyChoiceDialog::CreateList(int n, const wxString *choices, long styleLbox)
 {
-       wxSize size = wxDefaultSize;
-       if (wxSystemSettings::GetScreenType() > wxSYS_SCREEN_PDA)
-               size = wxSize(300, 200);
     return new wxListBox( this, wxID_LISTBOX,
-                          wxDefaultPosition, size,
+                          wxDefaultPosition, wxDefaultSize,
                           n, choices,
                           styleLbox );
 }
@@ -541,12 +538,8 @@ bool wxMultiChoiceDialog::TransferDataFromWindow()
 
 wxListBoxBase *wxMultiChoiceDialog::CreateList(int n, const wxString *choices, long styleLbox)
 {
-       wxSize size = wxDefaultSize;
-       if (wxSystemSettings::GetScreenType() > wxSYS_SCREEN_PDA)
-               size = wxSize(300, 200);
-
     return new wxCheckListBox( this, wxID_LISTBOX,
-                               wxDefaultPosition, size,
+                               wxDefaultPosition, wxDefaultSize,
                                n, choices,
                                styleLbox );
 }