![]() |
Where's Docking Panes' position/visibility stored? |
Post Reply ![]() |
Author | |
bob0110 ![]() Newbie ![]() Joined: 11 December 2007 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() 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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
Yup, that was it. Is that information stored in the registry or somewhere else?
|
|
![]() |
|
bob0110 ![]() Newbie ![]() Joined: 11 December 2007 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Thanks!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Yes.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Shajeer ![]() Newbie ![]() ![]() Joined: 20 January 2006 Location: India Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |