Small fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-10-17 15:59:20 +00:00
parent d8d474af58
commit eb38f734d2

View File

@@ -126,7 +126,7 @@ CheckListBoxFrame::CheckListBoxFrame(wxFrame *frame,
SetMenuBar(menu_bar); SetMenuBar(menu_bar);
// make a panel with some controls // make a panel with some controls
wxPanel *panel = new wxPanel(this, -1, wxPoint(0, 0), wxPanel *panel = new wxScrolledWindow(this, -1, wxPoint(0, 0),
wxSize(400, 200), wxTAB_TRAVERSAL); wxSize(400, 200), wxTAB_TRAVERSAL);
// check list box // check list box
@@ -184,16 +184,12 @@ CheckListBoxFrame::CheckListBoxFrame(wxFrame *frame,
mainsizer->Add( bottomsizer, 0, wxCENTER ); mainsizer->Add( bottomsizer, 0, wxCENTER );
// tell frame to make use of sizer (or constraints, if any) // tell frame to make use of sizer (or constraints, if any)
SetAutoLayout( TRUE ); panel->SetAutoLayout( TRUE );
panel->SetSizer( mainsizer );
// set frame to minimum size
mainsizer->Fit( this );
// don't allow frame to get smaller than what the sizers tell ye // don't allow frame to get smaller than what the sizers tell ye
mainsizer->SetSizeHints( this ); mainsizer->SetSizeHints( this );
SetSizer( mainsizer );
Show(TRUE); Show(TRUE);
} }