Strings in frames disappear (BCB)

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
wimbekker
Posts: 18
Joined: Fri Jan 03, 2003 1:25 pm

Strings in frames disappear (BCB)

Post by wimbekker »

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 »

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: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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 »

Loaded() will indeed load the translation in the constructor of the frame. But there's another problem concerning TFrame, I post a new message.
Post Reply