Retreiving the Docking pane status |
Post Reply |
Author | |
Atul
Newbie Joined: 02 May 2008 Location: India Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 29 July 2009 at 8:52am |
Hi,
I am having Docking panes in my application. Now I want my application to remember the status of the docking panes(which one is active, it's co-ordinates etc) when i close the session, and retrieve the status back, when a new session launches. While searching, i came across a XTPDockingPaneLayout class. In my Mainframe.cpp I do : m_paneManager.AttachPane(pwndPane2 , pwndPane1); m_paneManager.AttachPane(pwndPane3 , pwndPane1); m_paneManager.AttachPane(pwndPane7 , pwndPane1); // Load the previous state for docking panes. CXTPDockingPaneLayout layoutNormal(&m_paneManager); // I do call the Load function BOOL is_layout_loaded = layoutNormal.Load(_T("NormalLayout")); // this returns success. But i don't get the status of the docking panes right. I do CMainFrame::~CMainFrame() { // Saving the layout when the application is terminating ... Atul.V 29th July 2009 CXTPDockingPaneLayout layoutNormal(&m_paneManager); layoutNormal.Save(_T("NormalLayout")); } Am i missing anything ? I am using XTP 13.0.0. Thanks in Advance, Atul |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Just copy it from samples:
// Load the previous state for docking panes.
CXTPDockingPaneLayout layoutNormal(&m_paneManager); if (layoutNormal.Load(_T("NormalLayout"))) { m_paneManager.SetLayout(&layoutNormal); } ...
// Save the current state for docking panes.
CXTPDockingPaneLayout layoutNormal(&m_paneManager); m_paneManager.GetLayout(&layoutNormal); layoutNormal.Save(_T("NormalLayout")); |
|
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 |