Print Page | Close Window

Serialization of ribbon bar data and text.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15654
Printed Date: 06 October 2024 at 12:48am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Serialization of ribbon bar data and text.
Posted By: rdhd
Subject: Serialization of ribbon bar data and text.
Date Posted: 17 November 2009 at 5:24pm
When a ribbon bar is saved out to XML using the CXTPPropExchangeXMLNode and CXTPPropExchangeSection, the resultant file has text for the Caption, TooltipText and DescriptionText for each control.
 
I want to allow an organization to customize a ribbon and then save out the changes and then push the xml file to their users' machines. I have to support an organization doing so in which multiple languages are used. So I want the same customization layout in the ribbon but the text strings I want displayed on each machine will depend on the particular user's installation. That is, I may have French and German engineers working in the same company that wants a particular layout of the ribbon for every worker.
 
What I need is to be able to load the ribbon file and obtain the text strings from the locale specific resource file. Just like when I build the ribbon the first time in code when CJ loads the tooltips, caption and description strings from the (locale specific) resource file.
 
 
How do I force the text to be regenerated on the ribbon bar after I persist the data back in from the XML file? I can't find any parameter on the ribbon or even control level that gives me control over the strings. Nor does XTP_COMMANDBARS_PROPEXCHANGE_PARAM have any setting to control the I/O of the text.



Replies:
Posted By: Oleg
Date Posted: 18 November 2009 at 7:14am

Hi,

You can Enable actions then. See Actions sample.


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



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