Print Page | Close Window

Where's Docking Panes' position/visibility stored?

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=9077
Printed Date: 23 April 2024 at 8:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Where's Docking Panes' position/visibility stored?
Posted By: bob0110
Subject: Where's Docking Panes' position/visibility stored?
Date Posted: 11 December 2007 at 9:16pm
And how can I reset that information for my application. Spent all day trying to figure it out 
Thanks!!!



Replies:
Posted By: Oleg
Date Posted: 12 December 2007 at 1:33am

Almost all our samples are save/restore position of Panes.

To save:
 CXTPDockingPaneLayout layout(&m_paneManager);
 m_paneManager.GetLayout(&layout);
 layout.Save(_T("NormalLayout"));
 
To load:
 
 CXTPDockingPaneLayout layout(&m_paneManager);
 if (layout.Load(_T("NormalLayout")))
 {
  m_paneManager.SetLayout(&layout);
 }

 
 


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


Posted By: bob0110
Date Posted: 12 December 2007 at 3:53pm
Yup, that was it. Is that information stored in the registry or somewhere else?


Posted By: bob0110
Date Posted: 12 December 2007 at 3:59pm
Thanks!


Posted By: Oleg
Date Posted: 14 December 2007 at 2:58pm
Yes.

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


Posted By: Shajeer
Date Posted: 28 January 2008 at 1:03am
Hi
To save://In CMainFrame::OnDestroy
 CXTPDockingPaneLayout layout(&m_paneManager);
 m_paneManager.GetLayout(&layout);
 layout.Save(_T("NormalLayout"));
 
To load://In CMainFrame::OnCreate 
 CXTPDockingPaneLayout layout(&m_paneManager);
 if (layout.Load(_T("NormalLayout")))
 {
  m_paneManager.SetLayout(&layout);
 }
I am doing the above to save the postion and load it while relaunching.
But when I try to relaunch, the position has been loaded correctly but the
pane contents are blank.
Kindly advice to solve this issue.
Thanks
Shajeer


Posted By: Oleg
Date Posted: 28 January 2008 at 5:15am
Hi,
You have attach panes in Notify handler. See any sample from DockingPane folder.


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


Posted By: Shajeer
Date Posted: 28 January 2008 at 5:59am

Hi

I do not need to attach panes. I want all the panes to be separtely shown.I am using CXTPDockingPaneManager to show the different views with panes.CXTPDockingPaneManager's CreatePane function has been used to create all the panes.
 
Thanks
Shajeer


Posted By: Oleg
Date Posted: 28 January 2008 at 7:05am
Seriously, check our samples.

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



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