![]() |
MultiLanguage with designer CommandBars |
Post Reply ![]() |
Author | |
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |