Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Where's Docking Panes' position/visibility stored?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Where's Docking Panes' position/visibility stored?

 Post Reply Post Reply
Author
Message
bob0110 View Drop Down
Newbie
Newbie


Joined: 11 December 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote bob0110 Quote  Post ReplyReply Direct Link To This Post 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!!!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
bob0110 View Drop Down
Newbie
Newbie


Joined: 11 December 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote bob0110 Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2007 at 3:53pm
Yup, that was it. Is that information stored in the registry or somewhere else?
Back to Top
bob0110 View Drop Down
Newbie
Newbie


Joined: 11 December 2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote bob0110 Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2007 at 3:59pm
Thanks!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2007 at 2:58pm
Yes.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Shajeer View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2006
Location: India
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shajeer Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Shajeer View Drop Down
Newbie
Newbie
Avatar

Joined: 20 January 2006
Location: India
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shajeer Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2008 at 7:05am
Seriously, check our samples.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.