Page 1 of 1

Top Level Actions

Posted: Mon Jan 08, 2007 10:44 am
by alanmcd
From the FAQ on translating top level actions:
1. For every TActionClientItem without a TAction create a "fake" Action and link them. For example, if your TActionMainMenuBar has a top-level menu item '&File', create a new action FileFile1, set its .Caption property to '&File', and link them.

How do you "link them"
I'm having no success here. I have create a non-categorised action called acnFile - I can see it and translate it in the translation editor, but the top level item remains in english.
Any idea what I'm missing?
Alan

Posted: Mon Jan 08, 2007 12:07 pm
by isiticov
Just select top-level toolbar-menu item and set its Action property to this acnFile action. To select them just click on them at design-time you will see in Object Inspector selected something like TActionClients[0]. It has Action property which you assign. There is ActionManager demo project in the TsiLang delivery which demonstrates the translation of these items.
Please let me know if this helps.

Posted: Tue Jan 09, 2007 6:01 am
by alanmcd
seems to have been a refresh issue in my IDE - I can link it now but for ages there when I was clikcing on the top-level item on the actionmenutoobar, the object inspector wasn;t giving me the item.
thanks
Alan