X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d2ac6b8c652a4aac703ba03f143820e978b33d4..fa2b309e782464cffe7163d03a740a32fa385af5:/demos/forty/playerdg.cpp diff --git a/demos/forty/playerdg.cpp b/demos/forty/playerdg.cpp index 1454290692..8a64623191 100644 --- a/demos/forty/playerdg.cpp +++ b/demos/forty/playerdg.cpp @@ -9,11 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation -#pragma interface -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -49,7 +44,7 @@ PlayerSelectionDialog::PlayerSelectionDialog( wxListBox* list = new wxListBox( this, ID_LISTBOX, - wxDefaultPosition, wxDefaultSize, + wxDefaultPosition, wxSize(-1, 150), 0, 0, wxLB_SINGLE ); @@ -81,6 +76,8 @@ PlayerSelectionDialog::PlayerSelectionDialog( topsizer->SetSizeHints( this ); CentreOnParent(); + + m_OK->SetDefault(); } void PlayerSelectionDialog::OnSize(wxSizeEvent& WXUNUSED(event))