From: Vadim Zeitlin Date: Mon, 3 Jul 2006 12:39:27 +0000 (+0000) Subject: make the frame big enough to show all controls initially X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c4ef14c263080c9536e742b37ffd4226bef3ee3e make the frame big enough to show all controls initially git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 8435a9801c..9a5d95eb4c 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -1789,11 +1789,8 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame) END_EVENT_TABLE() MyFrame::MyFrame(const wxChar *title, int x, int y) + : wxFrame(NULL, wxID_ANY, title, wxPoint(x, y), wxSize(700, 450)) { - // give it a context help button - SetExtraStyle(wxFRAME_EX_CONTEXTHELP); - wxFrame::Create(NULL, wxID_ANY, title, wxPoint(x, y), wxSize(500, 430), - wxDEFAULT_FRAME_STYLE & ~ (wxMINIMIZE_BOX | wxMAXIMIZE_BOX)); SetHelpText( _T("Controls sample demonstrating various widgets") ); // Give it an icon @@ -1839,8 +1836,6 @@ MyFrame::MyFrame(const wxChar *title, int x, int y) #endif // wxUSE_STATUSBAR m_panel = new MyPanel( this, 10, 10, 300, 100 ); - - SetSizeHints( 500, 425 ); } void MyFrame::OnQuit (wxCommandEvent& WXUNUSED(event) )