All announcements, questions and issues related to the TsiLang Components Suite.
wimbekker
Posts: 18 Joined: Fri Jan 03, 2003 1:25 pm
Post
by wimbekker » Fri Jan 03, 2003 1:32 pm
Hi, I use a frame and all strings are auto-translated with siLangLinked->GetText("IDS..."). When I use this frame in a form, then GetText in the frame always returns "". I've noticed that in TsiStringsCollection.GetTranslationByID, the Count is zero.
How can I solve this?
Thanks, Wim
wimbekker
Posts: 18 Joined: Fri Jan 03, 2003 1:25 pm
Post
by wimbekker » Fri Jan 03, 2003 1:56 pm
BTW it seems that only in the constructor of the frame GetText returns "". In other methods it returns the expected value.
isiticov
Site Admin
Posts: 2416 Joined: Thu Nov 21, 2002 3:17 pm
Post
by isiticov » Fri Jan 03, 2003 3:37 pm
Try to call Loaded() method of TsiLang in your constructor before calling GetText() method. This should help.
wimbekker
Posts: 18 Joined: Fri Jan 03, 2003 1:25 pm
Post
by wimbekker » Wed Jan 08, 2003 11:08 am
Loaded() will indeed load the translation in the constructor of the frame. But there's another problem concerning TFrame, I post a new message.