can mdi be embedded in aui ?
Brian Gaynor
briang at roadrunner.com
Tue Apr 15 12:33:40 PDT 2008
On Tue, 2008-04-15 at 17:21 +0200, Harry wrote:
>
> Hi,
>
> I'm trying to embed an MDI-parent as the center pane using AUI.
> This doesn't seem to work - the MDI-parent never becomes a child of the
> AUI-managed window,
> and AUI doesn't seem to be able to incorporate it as a pane.
> I've in addition to wxMDIParentFrame tried also the undocumented
> wxAuiMDIParentFrame,
> without success.
>
> If somebody knows how to embed MDI inside AUI, or any other way of
> managing lots of panes
> around a central MDI-type area, please help.
>
I used MDI and AUI to get managed panes surrounding a central MDI area
(i.e. Visual-Studio like). I derived my frame from wxMDIParentFrame. In
the frame constructor the AUI manager is told to manager the frame:
m_mgr.SetManagedWindow(this);
Then I make the MDI client window the AUI center pane (this may wrap):
m_mgr.AddPane(GetClientWindow(),
wxAUIPaneInfo().Name(wxT("Images").CenterPane().PaneBorder(false));
managed panes are added in a similar fashion.
Brian
More information about the wx-users
mailing list