LoadState not working [C# DockingPane Sample] |
Post Reply |
Author | |
gpowers
Newbie Joined: 21 September 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Don't you forget SaveState call ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gpowers
Newbie Joined: 21 September 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
gpowers
Newbie Joined: 21 September 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thank you. That worked in the sample. I will look to see that I did not make that same mistake in my code.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |