View previous topic :: View next topic |
Author |
Message |
lenif7780
Joined: 06 May 2003 Posts: 12
|
Posted: Thu May 08, 2003 1:37 pm Post subject: TActionManager & TActionMainMenuBar |
|
|
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 ) |
|
Back to top |
|
 |
gaivans
Joined: 29 Nov 2002 Posts: 71
|
|
Back to top |
|
 |
lenif7780
Joined: 06 May 2003 Posts: 12
|
Posted: Fri May 09, 2003 7:10 am Post subject: |
|
|
Hello,
I do that but my translation don't work. All subitems are translated but my main menu items (file,edit,...) stay in english ...  |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Fri May 09, 2003 8:57 am Post subject: |
|
|
Have you assigned and translated the action for each top-level item? |
|
Back to top |
|
 |
lenif7780
Joined: 06 May 2003 Posts: 12
|
Posted: Fri May 09, 2003 8:58 am Post subject: |
|
|
yes |
|
Back to top |
|
 |
lenif7780
Joined: 06 May 2003 Posts: 12
|
Posted: Fri May 09, 2003 10:02 am Post subject: |
|
|
I use the filname property of the actionmanager to store the layout and maybe the problem come from there ? |
|
Back to top |
|
 |
lenif7780
Joined: 06 May 2003 Posts: 12
|
Posted: Fri May 09, 2003 10:56 am Post subject: |
|
|
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 ... !  |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Fri May 09, 2003 11:57 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
lenif7780
Joined: 06 May 2003 Posts: 12
|
Posted: Fri May 09, 2003 1:34 pm Post subject: |
|
|
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 ? |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2129
|
Posted: Sat May 10, 2003 4:36 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
|