Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How do I apply localization to Ribbon Tabs Caption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I apply localization to Ribbon Tabs Caption

 Post Reply Post Reply
Author
Message
menegrete View Drop Down
Newbie
Newbie


Joined: 17 November 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote menegrete Quote  Post ReplyReply Direct Link To This Post Topic: How do I apply localization to Ribbon Tabs Caption
    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


Product: Xtreme SuitePro (ActiveX) version 13.4.2
Platform: Windows XP (32bit) - SP3 
Language: Visual Basic 6.0 - MS Access (VBA)
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: 22 November 2010 at 4:23am
Hi,

Afraid its true.  Tabs and Groups don't have actions.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.