|  | 
| Where's Docking Panes' position/visibility stored? | 
| Post Reply   | 
| Author | |
| bob0110   Newbie   Joined: 11 December 2007 Status: Offline Points: 3 |  Post Options  Thanks(0)  Quote  Reply  Topic: Where's Docking Panes' position/visibility stored? 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!!! | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| bob0110   Newbie   Joined: 11 December 2007 Status: Offline Points: 3 |  Post Options  Thanks(0)  Quote  Reply  Posted: 12 December 2007 at 3:53pm | 
| 
   Yup, that was it. Is that information stored in the registry or somewhere else?
    | |
|  | |
| bob0110   Newbie   Joined: 11 December 2007 Status: Offline Points: 3 |  Post Options  Thanks(0)  Quote  Reply  Posted: 12 December 2007 at 3:59pm | 
| 
   Thanks!
    | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 14 December 2007 at 2:58pm | 
| 
   Yes.
    | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| Shajeer   Newbie     Joined: 20 January 2006 Location: India Status: Offline Points: 16 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  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 | |
|  | |
| Shajeer   Newbie     Joined: 20 January 2006 Location: India Status: Offline Points: 16 |  Post Options  Thanks(0)  Quote  Reply  Posted: 28 January 2008 at 5:59am | 
| HiI 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. 
ThanksShajeer | |
|  | |
| Oleg   Senior Member   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |  Post Options  Thanks(0)  Quote  Reply  Posted: 28 January 2008 at 7:05am | 
| 
   Seriously, check our samples.
    | |
| 
     Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |