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 

Overwrite MessageDlg()

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



Joined: 02 May 2006
Posts: 23

PostPosted: Fri Jun 05, 2009 7:21 am    Post subject: Overwrite MessageDlg() Reply with quote

I am using some other components using the function MessageDlg(). Is there a way to hook these function to replace it with the TsiLang implementation?
These components doesn't use anything from TsiLang, so I can't replace the functions manually. If I could do some kind of hook within my main application to use the TsiLang implementation instead - that would be great.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Mon Jun 08, 2009 10:36 am    Post subject: Reply with quote

Hello,

You can try to catch Screen.OnActiveFormChange and then enumerate control son active form if it is a message box and replace captions with translated values.
Back to top
View user's profile Send private message
Phoner



Joined: 02 May 2006
Posts: 23

PostPosted: Wed Jun 10, 2009 8:28 am    Post subject: Reply with quote

The component uses resource strings. Now I added these resource strings manually (see here) to TsiLang strings and and works now.
Thanks.
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