Perspectives of wxAuiManager between different app starts?

Andreas Micheler Andreas.Micheler at Student.Uni-Augsburg.de
Sat Sep 1 04:53:14 PDT 2007


Hallo Alexander,

> I have tested some hours with the Perspective together with wxConfig
> for saving the users dockingstate.
> 
> But for me it now seems like the perspectives, generated via
> m_mgr.SavePerspective()
> are not "compatible" between different application startups at least
> with the wxMSW-port of 2.8.4.
> 
> Is that assumtion true? Or am I doing something wrong...
> 
> I.E. the manager can not handle the different ID's that looks like
> memory-adresses ?

Maybe you did forget to give each pane a name?
Like in:

	theApp->aui->AddPane(menu,
		wxAuiPaneInfo().
		Name(wxT("ViewMenu")).Caption(_("ViewMenu")).
		Layer(1).Top().
		MinSize(40,20).BestSize(40,20).MaxSize(40,20).
		CloseButton(false)
		);

Otherwise wxAui tries to give unique names to each pane, I believe.

Cheers,
Andreas






More information about the wx-users mailing list