Print Page | Close Window

How to save a layout to a file?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=503
Printed Date: 23 December 2024 at 1:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to save a layout to a file?
Posted By: mikej
Subject: How to save a layout to a file?
Date 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

 

 

 


 

 




Replies:
Posted By: Oleg
Date 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


Posted By: mikej
Date 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



Posted By: Oleg
Date Posted: 09 March 2004 at 10:59pm
Try to add Toolkit_Dll project to your workspace.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net