DesignerControls empty after SaveStateToXMLString |
Post Reply |
Author | |
markh
Groupie Joined: 12 November 2003 Location: United Kingdom Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: 12 March 2008 at 5:41pm |
Hello
I am having an issue with SaveStateToXMLString. After I call this method, the DesignerControls list seems to get emptied. If I look at DesignerControls->Count before and after the call I can see it change from the correct number of elements to zero.
I have the SerializeDesignerControls option of StateOptions set to TRUE. This means that the first time I call SaveStateToXMLString the DesignerControls are saved correctly to the XML string. However, on the second call, the DesignerControls aren't saved, since the list has been deleted. This has the effect of giving me two different files on two subsequent calls to SaveStateToXMLString, the first with the DesignerControls and the second without, which is very odd. It also means that if I reload any file saved after the first call, the DesignerControls are not present in the file to be reloaded.
Any ideas?
Thanks
Mark
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
yes, think its true. it doesn't save DeignerControls by default. Use DoPropExchange method instead.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
markh
Groupie Joined: 12 November 2003 Location: United Kingdom Status: Offline Points: 49 |
Post Options
Thanks(0)
|
Hello Oleg.
It does save the DesignerControls on the first call to SaveStateToXMLString. However, it then deletes the list so that any subsequent files saved do not contain the DesignerControls.
This can be seen by loading the resulting files into the Designer Studio. The first file saved, displays all of the controls in the Controls Pane. However, any later saved files have an empty Controls Pane.
This seems rather inconsistent behaviour and makes it rather difficult to use the XML format for saving/loading user toolbar customizations.
I'll try DoPropExchange and let you know the results.
Mark
|
|
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 |