1. added some test code (currently disabled) to controls

2. removed test code (oops...) from minimal


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-01-22 01:45:24 +00:00
parent 00c4e8974d
commit 29e7e51a4d
2 changed files with 11 additions and 23 deletions

View File

@@ -165,24 +165,6 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
// ... and attach this menu bar to the frame
SetMenuBar(menuBar);
wxPanel *panel = new wxPanel(this, -1);
wxStaticBox *box = new wxStaticBox(panel, -1, "box");
wxComboBox *combo = new wxComboBox(panel, -1, "combo");
wxLayoutConstraints *c;
c = new wxLayoutConstraints;
c->left.SameAs(panel, wxLeft);
c->right.SameAs(panel, wxRight);
c->top.SameAs(panel, wxTop);
c->bottom.SameAs(panel, wxBottom);
box->SetConstraints(c);
c = new wxLayoutConstraints;
c->left.SameAs(box, wxLeft, 20);
c->right.SameAs(box, wxRight, 10);
c->top.SameAs(box, wxTop, 10);
c->bottom.SameAs(box, wxBottom, 10);
combo->SetConstraints(c);
panel->SetAutoLayout(TRUE);
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);