Author |
Message |
08/06/2015 10:09:10
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 266
Location: Ettlingen
Offline
|
Hi,
I have a PDFPrinter component inside a popup dialog and I want to run it in different modes:
- before the user presses a button
- after the user presses a button
- automatically
The button should close the window, but in automatic mode it should close automatically.
Now, everything works fine, except that the popup is not seen at all when running in 'automatic' mode. It seems that the printing is done before the dialog even gets displayed. And then I am closing it immediately after the print returns.
How can I trigger the printing so that the dialog is displayed first, before the printig starts?
Thanks for any help
Frauke
|
|
|
08/06/2015 10:48:12
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5510
Offline
|
Hi Frauke,
printing immediately starts when triggered... So the dialog seems to be closed too fast in "automatic" mode. (I strongly believe that it should be visible for a very short time...)
I would use some TIMER for closing the dialog in automatic mode. Via the TIMER-DURATION you can control how long the dialog is visible to the user before then being closed automatically.
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
08/06/2015 10:55:59
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 266
Location: Ettlingen
Offline
|
Hi Björn,
thanks for your answer!
Yes, probably I should use a timer to delay the closing, as you suggest.
As you said, I believe I should see the popup flicker on the screen before it closes, but indeed this is not the case. It must be very fast..., hmm
Nevermind, I could even imagine using the timer before I trigger the printing.
Frauke
|
|
|
|