Page 1 of 1

Strings in frames disappear (BCB)

Posted: Fri Jan 03, 2003 1:32 pm
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

Posted: Fri Jan 03, 2003 1:56 pm
by wimbekker
BTW it seems that only in the constructor of the frame GetText returns "". In other methods it returns the expected value.

Posted: Fri Jan 03, 2003 3:37 pm
by isiticov
Try to call Loaded() method of TsiLang in your constructor before calling GetText() method. This should help.

Posted: Wed Jan 08, 2003 11:08 am
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.