Changing Captions in Word Addin

Add-in Express™ Support Service
That's what is more important than anything else

Changing Captions in Word Addin
 
Guest


Guest


Hi,
Im developing Multi Lingual applications. First I write Outlook add in. Everything works fine. In adxCOMAddInModuleAddInInitialize event of Addin Im changing captions of the buttons. But in MS Word Addin I cant do that. Why? Here is my code in same event;
TAddInModule = class(TadxCOMAddInModule)
FloatingBar: TadxCommandBar;
...
end;

var
BtnAbout : TadxCommandBarButton;

procedure TAddInModule.adxCOMAddInModuleAddInInitialize (Sender:Object);
begin
BtnAbout:=FloatingBar.ControlByTag(10).AsButton;
//STC is language structure
//DefaultLangId is a parameter
BtnAbout.Caption:=STC[g_app.DefaultLangId,8];
end;

While designing I write the caption as "BtnAbout". While Im debugging I saw that BtnAbout.Caption gets the correct caption with language. But its still displays "BtnAbout".

Any Help.

Thanks.

Gürcan YÜCEL
Posted 28 Sep, 2004 07:42:50 Top
Gürcan YÜCEL


Guest


Ok,
I found the solution in 5 mins. :o
The buttons Temporary property must be true.

Thans.
Posted 28 Sep, 2004 07:47:14 Top
Eugene Starostin


Guest


:)
Posted 28 Sep, 2004 08:17:03 Top