X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6d0f0c7a5aa57c9340e847135a6e3d6d9ccd7d4..509f339a81d66c65fe2af1a67d63d6c856046ec2:/demos/forty/scoredg.cpp?ds=sidebyside diff --git a/demos/forty/scoredg.cpp b/demos/forty/scoredg.cpp index 79fc942fa8..ecd1bb44f4 100644 --- a/demos/forty/scoredg.cpp +++ b/demos/forty/scoredg.cpp @@ -9,11 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma implementation -#pragma interface -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -186,12 +181,12 @@ ScoreDialog::ScoreDialog(wxWindow* parent, ScoreFile* file) : ScoreCanvas* list = new ScoreCanvas(this, m_scoreFile, wxDefaultPosition, sz); #endif - list->SetBestFittingSize(sz); + list->SetInitialSize(sz); // locate and resize with sizers wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL ); topsizer->Add( list, 1, wxALL|wxGROW, 10 ); - wxButton *button = new wxButton(this, wxID_OK, _("OK")); + wxButton *button = new wxButton(this, wxID_OK); topsizer->Add( button, 0, wxALIGN_CENTER_HORIZONTAL|wxALL , 10 ); button->SetFocus(); @@ -203,10 +198,6 @@ ScoreDialog::ScoreDialog(wxWindow* parent, ScoreFile* file) : CentreOnParent(); } -ScoreDialog::~ScoreDialog() -{ -} - void ScoreDialog::Display() { ShowModal();