Loading and Saving Quick Access Bar buttons |
Post Reply |
Author | |
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
Posted: 28 July 2015 at 6:58am |
Hi,
I am trying to save the Quick Access CommandBar to a string which then saves it to our database (user specific options). I have followed the example on the Ribbon MDI, but that uses either an XML file to save to. I decided to take the string from the PropExchange (px) Value property as the XML is in there and save it to the database and reload it. How do I correctly re-apply this XML to the CommandBar like the px.LoadFromFile() method has done? I tried setting the px.Value property with this XML string, however it does not set the bars. If I replace the px.Value with the px.LoadFromFile with the same XML, it appears to work fine!!! If I load the file into a string with the FileSystemObject VB6 class, it still does not add my buttons!!! px.LoadFromFile() appears to be doing something 'special' to set up the PropExchange so I can apply it to my ribbonbar. Does anyone know what this is, or should I be tackling this a different way? Thanks!
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
Hemesh
Senior Member Joined: 10 August 2010 Status: Offline Points: 135 |
Post Options
Thanks(0)
|
Anyone from CodeJock know about this? Its a bit of a pain!
|
|
Product: Xtreme SuitePro (ActiveX) version 18.5.0
Platform: Windows 7 Enterprise (64-bit) Language: Visual Basic 6.0 |
|
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 |