Overwrite MessageDlg()

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Phoner
Posts: 23
Joined: Tue May 02, 2006 6:48 am

Overwrite MessageDlg()

Post by Phoner »

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.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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.
Best regards,
Igor Siticov.
Phoner
Posts: 23
Joined: Tue May 02, 2006 6:48 am

Post by Phoner »

The component uses resource strings. Now I added these resource strings manually (see here) to TsiLang strings and and works now.
Thanks.
Post Reply