X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a21ac1590f2950cdbbe1b423d072f4226c37741..8ced02f6018e8e3651af5a78db08cabc1ab67fec:/contrib/samples/deprecated/proplist/proplist.cpp?ds=sidebyside diff --git a/contrib/samples/deprecated/proplist/proplist.cpp b/contrib/samples/deprecated/proplist/proplist.cpp index f2f710453e..29b746899f 100644 --- a/contrib/samples/deprecated/proplist/proplist.cpp +++ b/contrib/samples/deprecated/proplist/proplist.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "proplist_sample.h" -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -75,7 +71,7 @@ bool MyApp::OnInit(void) m_mainFrame->Show(true); SetTopWindow(m_mainFrame); - + return true; } @@ -266,7 +262,7 @@ void MyApp::PropertyFormTest(bool useDialog) panel->SetConstraints(c); } #endif - + // Add items to the panel wxButton *okButton = new wxButton(panel, wxID_OK, _T("OK"), wxDefaultPosition, wxSize(80, 26), 0, wxDefaultValidator, _T("ok")); @@ -306,8 +302,8 @@ void MyApp::PropertyFormTest(bool useDialog) okButton->SetConstraints(c); // The name of this text item matches the "fred" property - wxTextCtrl *text = new wxTextCtrl(panel, wxID_ANY, _T("Fred"), wxDefaultPosition, - wxSize( 200, wxDefaultSize.y), 0, wxDefaultValidator, _T("fred")); + wxTextCtrl *text = new wxTextCtrl(panel, wxID_ANY, _T("Fred"), wxDefaultPosition, + wxSize( 200, wxDefaultCoord), 0, wxDefaultValidator, _T("fred")); c = new wxLayoutConstraints; c->left.SameAs(panel, wxLeft, 4);