Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - DesignerControls empty after SaveStateToXMLString
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DesignerControls empty after SaveStateToXMLString

 Post Reply Post Reply
Author
Message
markh View Drop Down
Groupie
Groupie


Joined: 12 November 2003
Location: United Kingdom
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote markh Quote  Post ReplyReply Direct Link To This Post Topic: DesignerControls empty after SaveStateToXMLString
    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
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: 13 March 2008 at 10:51am
Hi,
yes, think its true. it doesn't save DeignerControls by default. Use DoPropExchange method instead.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
markh View Drop Down
Groupie
Groupie


Joined: 12 November 2003
Location: United Kingdom
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote markh Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2008 at 1:25pm
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
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.125 seconds.