Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to save a layout to a file?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to save a layout to a file?

 Post Reply Post Reply
Author
Message
mikej View Drop Down
Newbie
Newbie
Avatar

Joined: 08 March 2004
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikej Quote  Post ReplyReply Direct Link To This Post Topic: How to save a layout to a file?
    Posted: 08 March 2004 at 11:01am

I'm trying to save a layout to an .ini file and I'm using the SaveToFile() method of the CXTPDockingPaneLayout class but it doesn't do anything. 

Code:

CXTPDockingPaneManager m_paneManager;
CXTPDockingPaneLayout layoutNormal(&m_paneManager);
m_paneManager.GetLayout(&layoutNormal);
layoutNormal.SaveToFile("test.ini","NormalLayout");

I don't get any compile or runtime errors, it just doesn't do anything.  Is there something that I'm missing or does anyone know of another way to save a layout to a file?

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: 08 March 2004 at 2:45pm

try to debug the code. Try to set full path for "test.ini"

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mikej View Drop Down
Newbie
Newbie
Avatar

Joined: 08 March 2004
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote mikej Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2004 at 9:27am

I tried specifying the entire path but it made no difference. 

I'm using MS Visual C++ 6.0 and I can't step through the code for any CodeJock classes.  I tried copying the .cpp and .h files for the classes I want to step through to the same folder the executable is running from, but it still doesn't work.  I also tried setting the working directory under the Project Settings->Debug tab to the location of the CodeJock class files. 

I'd really appreciate any other suggestions.

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: 09 March 2004 at 10:59pm
Try to add Toolkit_Dll project to your workspace.
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.133 seconds.