Page 1 of 1

TActionManager & TActionMainMenuBar

Posted: Thu May 08, 2003 1:37 pm
by lenif7780
I have my menu composed of the TActionManager & TActionMainMenuBar

When I try to translate or use the extended translation procedure, my ActionManger.ActionBar[x].Item[x] doesn't appear. Must I change the traduction in runtime by myself ? I known that this ActionManager can't be translated with D6 but is it possible with your component ?

Thanks,

Yves.
D6Ent.+TsiL eval. (before buy ;-))

Posted: Thu May 08, 2003 2:52 pm
by gaivans
Hello,

Yes, it is possible. See our FAQ for details:
http://www.sicomponents.com/lng_faq.html#10

Posted: Fri May 09, 2003 7:10 am
by lenif7780
Hello,

I do that but my translation don't work. All subitems are translated but my main menu items (file,edit,...) stay in english ... :(

Posted: Fri May 09, 2003 8:57 am
by isiticov
Have you assigned and translated the action for each top-level item?

Posted: Fri May 09, 2003 8:58 am
by lenif7780
yes

Posted: Fri May 09, 2003 10:02 am
by lenif7780
I use the filname property of the actionmanager to store the layout and maybe the problem come from there ?

Posted: Fri May 09, 2003 10:56 am
by lenif7780
To get it working, I add all main menu items caption into const. At the end of the UpdateStrings methode, i add ActionManager.ActionBand[0].Item[x].Caption := myConst;

So it works, but I don't think it's really the good method ... ! ;-)

Posted: Fri May 09, 2003 11:57 am
by isiticov
lenif7780 wrote:I use the filname property of the actionmanager to store the layout and maybe the problem come from there ?

This could be the origin of problem.

Posted: Fri May 09, 2003 1:34 pm
by lenif7780
I think too, but when translate in runtime myself, into the onchangelang event, that works great !

One more question: I f you test the actionmanager & customize menu possibility, you can see that delphi popup a small window to customize menus. How can I translate this too ?

Posted: Sat May 10, 2003 4:36 am
by isiticov
The strings from this popup menu ar placed in resource strings of project. So you can translate them by importing them from executable and setting the HandleResourceStrings property to True.