projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do only what is necessary in SetScrollbars(), let the base class do the rest
[wxWidgets.git]
/
demos
/
forty
/
playerdg.cpp
diff --git
a/demos/forty/playerdg.cpp
b/demos/forty/playerdg.cpp
index e5b5ee8267c6d4c74427a7d9d771406ade5e708c..8a6462319132ba9483111d6e4faee1f83539e2a5 100644
(file)
--- a/
demos/forty/playerdg.cpp
+++ b/
demos/forty/playerdg.cpp
@@
-9,11
+9,6
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation
-#pragma interface
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
// 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,
wxListBox* list = new wxListBox(
this, ID_LISTBOX,
- wxDefaultPosition, wx
DefaultSize
,
+ wxDefaultPosition, wx
Size(-1, 150)
,
0, 0,
wxLB_SINGLE
);
0, 0,
wxLB_SINGLE
);
@@
-63,8
+58,8
@@
PlayerSelectionDialog::PlayerSelectionDialog(
m_textField = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize);
m_textField = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize);
- m_OK = new wxButton(this, wxID_OK
, _T("OK")
);
- m_cancel = new wxButton(this, wxID_CANCEL
, _T("Cancel")
);
+ m_OK = new wxButton(this, wxID_OK);
+ m_cancel = new wxButton(this, wxID_CANCEL);
wxBoxSizer *button_sizer = new wxBoxSizer( wxHORIZONTAL );
button_sizer->Add( m_OK, 0, wxALL, 10 );
wxBoxSizer *button_sizer = new wxBoxSizer( wxHORIZONTAL );
button_sizer->Add( m_OK, 0, wxALL, 10 );
@@
-81,6
+76,8
@@
PlayerSelectionDialog::PlayerSelectionDialog(
topsizer->SetSizeHints( this );
CentreOnParent();
topsizer->SetSizeHints( this );
CentreOnParent();
+
+ m_OK->SetDefault();
}
void PlayerSelectionDialog::OnSize(wxSizeEvent& WXUNUSED(event))
}
void PlayerSelectionDialog::OnSize(wxSizeEvent& WXUNUSED(event))