Print Page | Close Window

How do I apply localization to Ribbon Tabs Caption

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=17569
Printed Date: 06 October 2024 at 5:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I apply localization to Ribbon Tabs Caption
Posted By: menegrete
Subject: How do I apply localization to Ribbon Tabs Caption
Date Posted: 17 November 2010 at 4:30pm
Hi,
    I've seen the examples associated to the product, and there is an example of applying localization to Actions, but I could not apply the same concept to Ribbon Tabs and Group Captions, because they aren't exported when doing the DoPropExchange. My code looks like:

Private Sub ExportActions(FileName As String)

    Dim objPropExchange As XtremeCommandBars.PropExchange
    Dim objStateOptions As XtremeCommandBars.StateOptions
    
    Set objPropExchange = XtremeCommandBars.CreatePropExchange
    
    Call objPropExchange.CreateAsXML(False, "Settings")
    
    Set objStateOptions = CommandBarsFrame.CreateStateOptions
    objStateOptions.SaveOriginalControls = false
    objStateOptions.SerializeControls = false
    objStateOptions.SerializeOptions = false
    objStateOptions.SerializeLayout = false
    objStateOptions.SerializeActions = true
    
    Call CommandBarsFrame.DoPropExchange(objPropExchange, objStateOptions)
    
    Call objPropExchange.SaveToFile("C:\" & FileName)
    
End Sub

I'm attaching my test ribbon (one tab, one group, one button). If I use the code to export the ribbon xml, I only get the Action associated to the button.

Are there any way to accomplish this?
Thanks in advance.
Martín

http://forum.codejock.com/uploads/6467/Form1.zip - uploads/6467/Form1.zip

Product: Xtreme SuitePro (ActiveX) version 13.4.2
Platform: Windows XP (32bit) - SP3 
Language: Visual Basic 6.0 - MS Access (VBA)



Replies:
Posted By: Oleg
Date Posted: 22 November 2010 at 4:23am
Hi,

Afraid its true.  Tabs and Groups don't have actions.


-------------
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