I'm using wxAui with frame having four panels. Here is a code creating them:
- Code: Select all
//set Managed Windows
appMgr.SetManagedWindow(this);
//setup panels
Panel1* p1 = new Panel1(this);
Panel2* p2 = new Panel2(this);
Panel3* p3 = new Panel3(this);
Panel4* p4 = new Panel4(this);
appMgr.AddPane(p1, wxAuiPaneInfo().Name(wxT("Panel 1")).Top().MaximizeButton(false).Centre().CloseButton(false).Caption(_("Panel 1")));
appMgr.AddPane(p4, wxAuiPaneInfo().Name(wxT("Panel 4")).Right().MaximizeButton(false).CloseButton(false).Caption(_("Panel 4")));
appMgr.AddPane(p2, wxAuiPaneInfo().Name(wxT("Panel 2")).Bottom().MaximizeButton(false).CloseButton(false).Caption(_("Panel 2")));
appMgr.AddPane(p3, wxAuiPaneInfo().Name(wxT("Panel 3")).Bottom().MaximizeButton(false).CloseButton(false).Caption(_("Panel 3")));
Now I want to be able to Maximize one Pane to take over whole space and Be able to restore the Panels layout.
How can I do that? Especially the Non Center panes?
Thanks