Page 1 of 1

Hints in Quckreports

Posted: Fri Jun 10, 2005 3:30 am
by lgreen
What is the best way to put the translations of the hints in Quickreports such that when you preview the report, the buttons available show the hints in a select language.

THANKS

Posted: Fri Jun 10, 2005 4:18 am
by isiticov
This is possible only with some run-time hacking, like:
1. Write Screen.OnActiveFormChange() event.
2. In this even catch appearing of QR Preview form.
3. When QR Preview form catched make the following:
3.1. Create TsiLang components at run-time and insert it into this form and assign dispatcher to one used in your project.
3.2. Call BuildList method to build translations list.
3.3. Call SaveAllToFile() or SaveAllToBinaryFile() to save translations to external file.
4. Translate this file.
5. Next times when QR form catched make the same as in 3. but only with loading translations from external file.

Hope this helps.