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 

Auto refresh the caption with GetTextOrDefault()

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



Joined: 30 Sep 2008
Posts: 6

PostPosted: Tue Nov 18, 2008 3:31 am    Post subject: Auto refresh the caption with GetTextOrDefault() Reply with quote

Hi Experts,
I'm creating buttons during run time whose captions are retrieved from database. I use GetTextOrDefault() to display the correct language text during the creation. But when the user change the language, all those created during design time are reflecting the correct text except those created at runtime. Do I have to scan the whole form for run time components and change the caption? is there any automated way?

Regards
Elan
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Tue Nov 18, 2008 11:10 am    Post subject: Reply with quote

Hello,

Yes, the only way to achieve this is to scan the components and re-apply the caption to them. You can easily create a procedure for this, that will iterate through all the components in Components property of the form and re-apply the caption there.
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