Page 1 of 1

Overwrite MessageDlg()

Posted: Fri Jun 05, 2009 7:21 am
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.

Posted: Mon Jun 08, 2009 10:36 am
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.

Posted: Wed Jun 10, 2009 8:28 am
by Phoner
The component uses resource strings. Now I added these resource strings manually (see here) to TsiLang strings and and works now.
Thanks.