Print Page | Close Window

MultiLanguage with designer CommandBars

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17954
Printed Date: 19 June 2025 at 3:46pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MultiLanguage with designer CommandBars
Posted By: Kenneth
Subject: MultiLanguage with designer CommandBars
Date Posted: 24 February 2011 at 10:35am
I am trying to build a multilanguage application application using the toolkitpro MultiLanguage example.  I also want to support designer CommandBars using a .xcb file.
 
The application will be provided to our customers with a default language dll(s) which defines the default main menu and toolbars.  We then provide the customer the ability to customize the main menu/toolbars and create a custom .xcb file which will be distributed to their end users.
 
When the application starts it checks for a .xcb file.  If found, it uses it to create the CommandBars, otherwise the default main menu and toolbars contained in the default language dll is used.  All this appears to work correctly.
 
However, if another language is selected from the menu, the main menu is reset to how it is defined in the default language dll.  After looking at the example toolkitpro Multilanguage program, the function ResetCommandBars() is the source of the problem in that it does not consider designer CommandBars.
 
Is this possible, or is restarting the application required to reprocess the .xcb file?



Replies:
Posted By: Oleg
Date Posted: 25 February 2011 at 8:34am
So don't call same ResetCommandBars... :) and call method from LoadFrame where you load this xcb.

btw think if you want provide only translation but don't need change order of buttons/menu items for user xcb, much better will be load custom actions instead whole CommandBars (see Actions sample) in this case all strings will be translated on fly and user customization won't be lost.


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