SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Strings in frames disappear (BCB)

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
wimbekker



Joined: 03 Jan 2003
Posts: 18

PostPosted: Fri Jan 03, 2003 1:32 pm    Post subject: Strings in frames disappear (BCB) Reply with quote

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
Back to top
View user's profile Send private message
wimbekker



Joined: 03 Jan 2003
Posts: 18

PostPosted: Fri Jan 03, 2003 1:56 pm    Post subject: Reply with quote

BTW it seems that only in the constructor of the frame GetText returns "". In other methods it returns the expected value.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Fri Jan 03, 2003 3:37 pm    Post subject: Reply with quote

Try to call Loaded() method of TsiLang in your constructor before calling GetText() method. This should help.
Back to top
View user's profile Send private message
wimbekker



Joined: 03 Jan 2003
Posts: 18

PostPosted: Wed Jan 08, 2003 11:08 am    Post subject: Reply with quote

Loaded() will indeed load the translation in the constructor of the frame. But there's another problem concerning TFrame, I post a new message.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group