set size hints in notebook sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,8 +137,7 @@ wxPanel *MyNotebook::CreateBigButtonPage()
|
|||||||
{
|
{
|
||||||
wxPanel *panel = new wxPanel(this);
|
wxPanel *panel = new wxPanel(this);
|
||||||
|
|
||||||
wxButton *buttonBig = new wxButton( panel, wxID_ANY, wxT("Maximized button"),
|
wxButton *buttonBig = new wxButton(panel, wxID_ANY, wxT("Maximized button"));
|
||||||
wxPoint(0, 0), wxSize(480, 360) );
|
|
||||||
|
|
||||||
wxBoxSizer *sizerPanel = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *sizerPanel = new wxBoxSizer(wxVERTICAL);
|
||||||
sizerPanel->Add(buttonBig, 1, wxEXPAND);
|
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_panel->SetAutoLayout(true);
|
||||||
|
|
||||||
m_sizerFrame->Fit(this);
|
m_sizerFrame->Fit(this);
|
||||||
|
m_sizerFrame->SetSizeHints(this);
|
||||||
|
|
||||||
Centre(wxBOTH);
|
Centre(wxBOTH);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user