From ed420f6ddd4749637ca425a9f021a595751404f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 12 Jun 2004 19:38:33 +0000 Subject: [PATCH] set size hints in notebook sample git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/notebook/notebook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/notebook/notebook.cpp b/samples/notebook/notebook.cpp index 251b694278..3839145a06 100644 --- a/samples/notebook/notebook.cpp +++ b/samples/notebook/notebook.cpp @@ -137,8 +137,7 @@ wxPanel *MyNotebook::CreateBigButtonPage() { wxPanel *panel = new wxPanel(this); - wxButton *buttonBig = new wxButton( panel, wxID_ANY, wxT("Maximized button"), - wxPoint(0, 0), wxSize(480, 360) ); + wxButton *buttonBig = new wxButton(panel, wxID_ANY, wxT("Maximized button")); wxBoxSizer *sizerPanel = new wxBoxSizer(wxVERTICAL); sizerPanel->Add(buttonBig, 1, wxEXPAND); @@ -319,6 +318,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size, m_panel->SetAutoLayout(true); m_sizerFrame->Fit(this); + m_sizerFrame->SetSizeHints(this); Centre(wxBOTH);