projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f35f36
)
set size hints in notebook sample
author
Václav Slavík
<vslavik@fastmail.fm>
Sat, 12 Jun 2004 19:38:33 +0000
(19:38 +0000)
committer
Václav Slavík
<vslavik@fastmail.fm>
Sat, 12 Jun 2004 19:38:33 +0000
(19:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27760
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
samples/notebook/notebook.cpp
patch
|
blob
|
blame
|
history
diff --git
a/samples/notebook/notebook.cpp
b/samples/notebook/notebook.cpp
index 251b6942781ddb5c3a09e5d2251c98d83ce9c9ac..3839145a0612106866cb2dc9ceb513c8df5fec66 100644
(file)
--- 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);