]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicdgg.cpp
use CanSetValueAs() instead of CanGetValueAs() in wxGridCellBoolEditor::EndEdit
[wxWidgets.git] / 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 );
 }