Page 1 of 1

求助,关于wxwidgets的wxAuiManager

Posted: Thu Apr 01, 2010 2:12 am
by happybamboo
我想在wxMDIParentFrame 中用wxAuiManager来管理界面,程序大体如下:
MainFrame::MainFrame(const wxString& title, const wxSize& size,
const wxPoint& pos, long style)
: wxAuiMDIParentFrame(NULL, wxID_ANY, title, pos, size, style)
{
Maximize(true);
m_mgr.SetManagedWindow(this);

SetIcon(wxIcon(chip_xpm));

child = new ChildFrame(this,wxT("Main Chip"));
m_mgr.AddPane(GetClientWindow(), wxAuiPaneInfo().Name(wxT("canvas")).
CenterPane().Show());

m_pinlist = new PinList(this);
block_pinlist=new PinList(this,LB);

m_mgr.AddPane(m_pinlist,wxAuiPaneInfo().Name(wxT("I/O list")).Left().Layer(1).Position(1));
m_mgr.AddPane(block_pinlist,wxAuiPaneInfo().Name(wxT("Block List")).Left().Layer(1).Position(2));
text=new wxTextCtrl(this, wxID_ANY, _T("A help window"),
wxDefaultPosition, wxDefaultSize,
wxTE_MULTILINE | wxNO_BORDER);
text->SetEditable(false);
static wxStreamToTextRedirector redirect(text);
m_mgr.AddPane(text,wxAuiPaneInfo().Name(wxT("A help window")).Bottom());

m_mgr.Update();

}
但是,出来的child界面只在左上角,特别小的一个区域内。剩余的地方全是空着的?
求教,是什么问题?和wxSizeEvent有什么关系没?