Check if a previewform is active.
Hello,
I use in my application a timer to lock the application if nobody is using
it for a while. But when there is a preview form active in my application i
don't want to lock the application.
Is there a way to detect if there is a previewform active in my application?
I'm using Delphi 6 and Reportbuilder 7.03.
Thanks in advance,
Wim Looman
Hills automatisering B.V.
I use in my application a timer to lock the application if nobody is using
it for a while. But when there is a preview form active in my application i
don't want to lock the application.
Is there a way to detect if there is a previewform active in my application?
I'm using Delphi 6 and Reportbuilder 7.03.
Thanks in advance,
Wim Looman
Hills automatisering B.V.
This discussion has been closed.
Comments
You can access the Preview form using the TppReport.PreviewForm property.
This property is a descendent of the TForm object. Try checking the Active
property to see if the preview form is currently active in your app.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com