Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - loading/saving CXTPDockingPaneLayout
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

loading/saving CXTPDockingPaneLayout

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


Joined: 09 February 2004
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote dmetzler Quote  Post ReplyReply Direct Link To This Post Topic: loading/saving CXTPDockingPaneLayout
    Posted: 24 March 2004 at 11:44am

I have created a docking pane layout and saved using the CXTPDockingPaneLayout::SaveToFile(), which generated an XML file.  I thought this would preserve the pane layouts.  If I then rearrange/undock/dock panes, I call CXTPDockingPaneLayout::LoadFromFile() but find the original saved layout is not restored.

Should these methods restore a saved layout and preserve docking/floating status?

Thanks,

Don Metzler

SISCOM, Inc.

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: 25 March 2004 at 7:20am
After LoadFromFile you must call CXTPDocjkingPaneManager::SetLayout
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dmetzler View Drop Down
Newbie
Newbie


Joined: 09 February 2004
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote dmetzler Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2004 at 11:16am

Thanks - I will add that.

Don

Back to Top
dmetzler View Drop Down
Newbie
Newbie


Joined: 09 February 2004
Location: United States
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote dmetzler Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2004 at 2:20pm

Maybe I am not understanding what this call does.  I create my layout of panes and their controls dynamically.  I want to preserve the layout of the panes.  When I call LoadFromFile(), I simply want to position my existing panes, not create new ones.

Does CXTPDockingPaneLayout::LoadFromFile() create the panes or simply position the existing ones?

Thanks,

Don Metzler

SISCOM, Inc.

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.156 seconds.