Command Bars Designer and software localization |
Post Reply |
Author | |
laszel
Newbie Joined: 09 August 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 08 September 2006 at 5:33am |
Hello!
I'm using Visual Studio .NET 2005 (C#) I've created XCB file using Codejock CommandBars Designer, in VS Designer choosed "ActiveX-LoadCommandBars(*.xcb)" and in my code: axCommandBars1.LoadDesignerBars(); Problem arises when I want to add support for another language to my application. I definitely don't want to distribute XCB files, so creating many language-depentdent XCB files and loading them by LoadDesignerBars("Form.xcb") is not a solution. How can I solve this problem? Of course I can map strings in code, after doing LoadDesignerBars, by axCommandBars1.FindControl(ID_FILE).Caption = "Plik"; but aren't there any better solutions? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
In 10.3.0 was added actions. It is best solution.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
laszel
Newbie Joined: 09 August 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Do Actions work with Designer generated CommandBars?
This works OK: const int ID_FILE = 1020; axCommandBars1.EnableActions(); axCommandBars1.ActiveMenuBar.Controls.Add(
XTPControlType.xtpControlButtonPopup, ID_FILE, "File", null, null); axCommandBars1.Actions[ID_FILE].Caption = "Localized String"; But this not: const int ID_FILE = 1020; // as defined in Codejock Designer axCommandBars1.EnableActions(); axCommandBars1.LoadDesignerBars();
axCommandBars1.Actions[ID_FILE].Caption = "Localized String"; It still displays string typed in Codejock CommandBars Designer instead of "Localized String" :-/ Any help? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Yes, it have work.
Just check that you enable actions inside designer. - Run designer, select any item and click Enable Actions in Property Grid.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
laszel
Newbie Joined: 09 August 2006 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks, it works :)
I haven't noticed this option :) |
|
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 |