Improve sizer support in generic wxNotebook. Fix the widgets sample

to take advantage of it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2005-08-28 08:00:25 +00:00
parent d30814cdf2
commit 6bae67261c
3 changed files with 19 additions and 1 deletions

View File

@@ -327,7 +327,12 @@ WidgetsFrame::WidgetsFrame(const wxString& title)
//style |= wxNB_NOPAGETHEME;
m_book = new wxBookCtrl(m_panel, wxID_ANY, wxDefaultPosition,
wxDefaultSize, style);
#ifdef __WXMOTIF__
wxSize(500, -1), // under Motif, height is a function of the width...
#else
wxDefaultSize,
#endif
style);
InitBook();
#ifndef __SMARTPHONE__