Preview Form - How to check "FPreview.FRunning"
Mark Elder
SD, USA
Hello,
I am building a report preview form for my application. I have the professional version so I have access to the source code. I started looking at the code in frxPreview for the PreviewForm as a starting point for building my own preview form.
There are number of places in the code where the PreviewForms checks the FRunning flag on the TfrxPreview object. For example in the CloseQuery event there is this:
CanClose := not FPreview.FRunning;
FRunning is private. The TfrxPreview and the PreviewForm classes are in the same Pas file so the PreviewForm can read the private variable. I can't do that in my own preview form.
I can't seem to find any way to access the "running" status from a public method. Is there something that I am missing?
Is this really needed? Are there things happening on a different thread or are there calls to Application.ProcessMessages that I need to be concerned about?
Thanks,
Mark
I am building a report preview form for my application. I have the professional version so I have access to the source code. I started looking at the code in frxPreview for the PreviewForm as a starting point for building my own preview form.
There are number of places in the code where the PreviewForms checks the FRunning flag on the TfrxPreview object. For example in the CloseQuery event there is this:
CanClose := not FPreview.FRunning;
FRunning is private. The TfrxPreview and the PreviewForm classes are in the same Pas file so the PreviewForm can read the private variable. I can't do that in my own preview form.
I can't seem to find any way to access the "running" status from a public method. Is there something that I am missing?
Is this really needed? Are there things happening on a different thread or are there calls to Application.ProcessMessages that I need to be concerned about?
Thanks,
Mark
Comments