Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Loading Layout without destroying existing panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Loading Layout without destroying existing panes

 Post Reply Post Reply
jbriguet View Drop Down

Joined: 27 March 2013
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote jbriguet Quote  Post ReplyReply Direct Link To This Post Topic: Loading Layout without destroying existing panes
    Posted: 28 February 2014 at 11:13am
Hi, I'm encountering a very annoying issue with the docking panes.

Situation is this :

1) I have several panes in a docking pane manager.
2) I save the layout to an xml file.
3) In visual studio, I add a pane in my code, docked somewhere in my ui.
4) I restart my program
5) I load the previously loaded layout, 
6) My new pane (created in step 3) have been destroyed.
7) I have to, each time I add a new pane (step 3) to my UI, handle specifically the new panes that were destroyed when loading the layout.

Is there any simple way to avoid this mess, to not destroy pane and their child when loading a layout. To simply apply the layout to the existing pane, and at worst, closing the (potentially new) ones not in the layout we loaded ?

I tried to dive in the DockingPaneLayout::Copy stuff, but the copy is actually destroying and cloning lot of stuff, and so are the dockingpanebase::Copy derived classes and methods.

Should i go directly to a support request for this matter ?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.