Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting if Report Preview is Open
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00811180
Message ID:
00811192
Views:
16
>Is there a way to detect if the print preview window is open. I have an application toolbar with a close button (it has a door). When the print preview is open, sometimes, my users click on the Application Toolbar close button on accident and then after they close the report preview, the application shutsdown (as it is supposed to when they click on the application close button). I'm hoping to put a check in the application close button to make sure the print preview is not open, and if so, ignore the click on this button.
>
>Thanks
>Kirk

Just disable the application close when a prieview is brought up and re-enable it when the preview is finished.

_SCREEN.Closable = .F.
REPORT FORM .... PREVIEW
_SCREEN.Closable = .T.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform