Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - MultiLanguage with designer CommandBars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MultiLanguage with designer CommandBars

 Post Reply Post Reply
Author
Message
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post Topic: MultiLanguage with designer CommandBars
    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?
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: 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
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.047 seconds.