Print Page | Close Window

Loading Layout without destroying existing panes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=22226
Printed Date: 29 April 2024 at 4:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Loading Layout without destroying existing panes
Posted By: jbriguet
Subject: Loading Layout without destroying existing panes
Date 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 ?






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net