Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2005 Dec : Printing.
| Subject: | Printing. |
| Posted by: | "Scott" (sdani..@taxwise.com) |
| Date: | Mon, 19 Dec 2005 12:05:14 |
The scenario:
My application allows users to open a modal window which displays status
information. The window is shown using the showmodal method. The window has
a print button which will print the status information shown by sending a
print job to an external DLL that handles all print jobs for my application.
The DLL uses Windows API calls to do the printing.
The issue:
once the user clicks the print button and the print job is sent to the
printer, the user can now click on the application's main form even though
the 2nd window was shown using showmodal. This causes the apps mainform to
be on top of the 2nd form. Now the user doesn't know the other form is still
being show (it's just behind the main form). I think this happens because
the windows API returns control back to the application to allow canceling a
print job but I'm not sure. How can I reestablish this showmodal connection
to prevent the 2nd form from falling behind the main form?
Thanks,
-scott