TActionManager & TActionMainMenuBar

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
lenif7780
Posts: 12
Joined: Tue May 06, 2003 1:41 pm

TActionManager & TActionMainMenuBar

Post 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 ;-))
gaivans
Posts: 71
Joined: Fri Nov 29, 2002 4:10 pm

Post by gaivans »

Hello,

Yes, it is possible. See our FAQ for details:
http://www.sicomponents.com/lng_faq.html#10
Best regards,
Serghei Gaivan
lenif7780
Posts: 12
Joined: Tue May 06, 2003 1:41 pm

Post 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 ... :(
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Have you assigned and translated the action for each top-level item?
lenif7780
Posts: 12
Joined: Tue May 06, 2003 1:41 pm

Post by lenif7780 »

yes
lenif7780
Posts: 12
Joined: Tue May 06, 2003 1:41 pm

Post by lenif7780 »

I use the filname property of the actionmanager to store the layout and maybe the problem come from there ?
lenif7780
Posts: 12
Joined: Tue May 06, 2003 1:41 pm

Post 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 ... ! ;-)
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
lenif7780
Posts: 12
Joined: Tue May 06, 2003 1:41 pm

Post 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 ?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Post Reply