git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39947
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
END_EVENT_TABLE()
MyFrame::MyFrame(const wxChar *title, int x, int y)
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
SetHelpText( _T("Controls sample demonstrating various widgets") );
// Give it an icon
#endif // wxUSE_STATUSBAR
m_panel = new MyPanel( this, 10, 10, 300, 100 );
#endif // wxUSE_STATUSBAR
m_panel = new MyPanel( this, 10, 10, 300, 100 );
-
- SetSizeHints( 500, 425 );
}
void MyFrame::OnQuit (wxCommandEvent& WXUNUSED(event) )
}
void MyFrame::OnQuit (wxCommandEvent& WXUNUSED(event) )