Fixed resizing problem with GTK 1.2.3 notebooks.

Added wxSizer test to controls sample.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-10-23 10:40:04 +00:00
parent 775e1c62be
commit d7928388eb
3 changed files with 42 additions and 7 deletions

View File

@@ -554,6 +554,8 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
// --------------- TEST CODE ----------------------
// layout constraints
panel = new wxPanel(m_notebook);
panel->SetAutoLayout( true );
@@ -576,7 +578,22 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
wxButton *pMyButton2 = new wxButton(panel, -1, "Test Button 2" );
pMyButton2->SetConstraints( c );
m_notebook->AddPage(panel, "test layout");
m_notebook->AddPage(panel, "wxLayoutConstraint");
// sizer
panel = new wxPanel(m_notebook);
panel->SetAutoLayout( true );
wxBoxSizer *sizer = new wxBoxSizer( wxHORIZONTAL );
sizer->Add( new wxButton(panel, -1, "Test Button" ), 3, wxALL, 10 );
sizer->Add( 20,20, 1 );
sizer->Add( new wxButton(panel, -1, "Test Button 2" ), 3, wxGROW|wxALL, 10 );
panel->SetSizer( sizer );
m_notebook->AddPage(panel, "wxSizer");
// --------------- TEST CODE ----------------------