Print Page | Close Window

LoadState not working [C# DockingPane Sample]

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=8121
Printed Date: 25 April 2024 at 12:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadState not working [C# DockingPane Sample]
Posted By: gpowers
Subject: LoadState not working [C# DockingPane Sample]
Date Posted: 21 September 2007 at 3:20pm
Help. I am trying to use the LoadState function in my C++ app and was not seeing it work so I looked at the C# dockingPane Sample.

In both the sample and my app, the SaveState functions correctly save the info to the registry. Then in the C# DockingPane sample, I simply uncommented the line
 "DockingPaneManager.LoadState ("Codejock Software Demos", "DockingPane Sample", "Layout");"
 and the load did not appear to change the layout. This is the identical behavior as in my application. Is another function call needed to kick the panes to tell them to redraw or something?

Thanks



Replies:
Posted By: Oleg
Date Posted: 22 September 2007 at 3:51am
 
Don't you forget SaveState call ?


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


Posted By: gpowers
Date Posted: 24 September 2007 at 11:39am
No. Using the unmodified C# Docking Pane Sample, I simply uncommented the LoadState call and it does not work. Again, the SaveState works and the contents of the registry as viewed with regedit look good.


Posted By: Oleg
Date Posted: 25 September 2007 at 5:00am
Hi,
 
In this sample appName parameter in LoadState was "DockingPane Sample" but appName in SaveState was "DockingPaneSample".
 
Make them same.


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


Posted By: gpowers
Date Posted: 25 September 2007 at 12:09pm
Thank you. That worked in the sample.  I will look to see that I did not make that same mistake in my code.






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