Print Page | Close Window

loading/saving CXTPDockingPaneLayout

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=561
Printed Date: 23 December 2024 at 6:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: loading/saving CXTPDockingPaneLayout
Posted By: dmetzler
Subject: loading/saving CXTPDockingPaneLayout
Date Posted: 24 March 2004 at 11:44am

I have created a docking pane layout and saved using the CXTPDockingPaneLayout::SaveToFile(), which generated an XML file.  I thought this would preserve the pane layouts.  If I then rearrange/undock/dock panes, I call CXTPDockingPaneLayout::LoadFromFile() but find the original saved layout is not restored.

Should these methods restore a saved layout and preserve docking/floating status?

Thanks,

Don Metzler

SISCOM, Inc.




Replies:
Posted By: Oleg
Date Posted: 25 March 2004 at 7:20am
After LoadFromFile you must call CXTPDocjkingPaneManager::SetLayout

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: dmetzler
Date Posted: 25 March 2004 at 11:16am

Thanks - I will add that.

Don



Posted By: dmetzler
Date Posted: 29 March 2004 at 2:20pm

Maybe I am not understanding what this call does.  I create my layout of panes and their controls dynamically.  I want to preserve the layout of the panes.  When I call LoadFromFile(), I simply want to position my existing panes, not create new ones.

Does CXTPDockingPaneLayout::LoadFromFile() create the panes or simply position the existing ones?

Thanks,

Don Metzler

SISCOM, Inc.




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