Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a Preview (w/o printing)
Message
 
To
05/08/2004 20:00:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00931145
Message ID:
00931291
Views:
25
>>>I think you might have SET ESCAPE ON.
>>
>>Yes, and that is the desired behavior for this application. Pressing escape closes forms, etc. in the least destructive way, i.e. without saving or not executing a selection. Is there a way of working around this?
>
>Pressing ESC might also interrupt a running SQL statement, or any procedure, for instance.
>
>I think you should SET ESCAPE OFF, and then specifically check for ESC in the form, and take the corresponding actions (TableRevert(), etc.).


There should be nothing else running during the print preview (a modal thing waiting for the user to close or print), and it's pressing escape there that flushes me straight out to the command window (from the IDE) or desktop (from the .exe).

So your suggestion is to place code in the KeyPress event of the form to trap escapes there? Is there a KeyPress event associated with the print preview window. I'm previewing in a defined full-screen window rather than the default preview that always starts too small.
Randy Bosma
VFP - Because life is too short to code in something else...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform