Hints in Quckreports

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
lgreen
Posts: 1
Joined: Mon Feb 17, 2003 6:46 pm
Contact:

Hints in Quckreports

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

Post 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.
Best regards,
Igor Siticov.
Post Reply