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 

Caption and Hint for those componets creating at run time

 
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 Sep 30, 2008 3:54 pm    Post subject: Caption and Hint for those componets creating at run time Reply with quote

Hi there,
I'm using siLangRT first time and this may be asked before.
This my requirement.
My application will create many TbitButtons in my main form based on the Database field. How can I show the Caption and Hints at run-time according to the selected language?

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


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Tue Sep 30, 2008 5:05 pm    Post subject: Reply with quote

Hello,

You can set Caption and Hint property for these run-time created components in code using GetTextOrDefault() method of TsiLang and provide these strings in Strings list of TsiLang.
If you describe a little bit detailed what is needed we would try to provide you more detailed description.
Back to top
View user's profile Send private message
manielan



Joined: 30 Sep 2008
Posts: 6

PostPosted: Thu Oct 02, 2008 8:00 am    Post subject: Reply with quote

Thanks for the quick response. This is what I'm doing.
Create buttons at run-time with the captions and hints taken from database. For example

While not MyADOQry.EOF do begin
TbitButton.Caption := MyADOQryBtnCaption.AsString;
TbitButton.Hint := MyADOQryBtnHint.AsString;
....
....
MyADOQry.Next
end; //while

How can I switch the caption when the user switch the language?
How to advise my enduser to translate?
I'm using siLangRT for the end-user to maintain the translation.

Hope I'm clear this time around.

Regards
-Elan
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