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
This commit is contained in:
Vadim Zeitlin
2006-07-03 12:39:27 +00:00
parent 276ebe79a6
commit c4ef14c263

View File

@@ -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) )