PDA

View Full Version : Multi Lingual Tool Tips


jimscharff
03-17-2004, 06:32 AM
I am making a multi lingual CD with video etc. All is working fine with the use of variables to change the text of labels, buttons etc, and the video loads correctly with an audio track appropriate to the language selection.

I am just stuck with the button tooltip property - is it possible to change that using a variable?



Thanks


Jim

jimscharff
03-17-2004, 06:57 AM
:o oops

I have also noticed that re-setting labels to new text versions (ie language) does not respect the alignment characteristic of the object. (ie centralised text becomes left aligned after using the label set.text command.


This may be a bug to be fixed later?
Does anyone know of a work around?


Jim

Stefan_M
03-17-2004, 07:52 AM
I run into the same problems.

It seems there is no way to translate the tooltips.

To set the position and text of labels I did it with following Global Function.


--Pagename ist the Label text
--Pagewidth is 800
--Labelname is "TitelText"

function SetTitleText(Pagename)
ObjectName="TitelText";
Label.SetVisible(ObjectName, false);
--set new label text
Label.SetText(ObjectName, Pagename);
--get new labelsize
Titelsize = Label.GetSize(ObjectName);
--math new position (centralized)
Titelpos=(800-Titelsize.Width) / 2;
--set new position (fixed y position)
Label.SetPos(ObjectName, Titelpos, 70);
--show it
Label.SetVisible(ObjectName, true);
end



Stefan

jimscharff
03-17-2004, 09:31 AM
Thanks for the feedback - I'll try the global function approach - but it looks like a lot of work for what seems like a bug in the system (ie setting text alignment to centralise should persist after making changes).

I am not surprised about the ToolTip feature. Maybe this will get onto a Wish List for later.


Jim