Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close webbrowser form with Esc key
Message
From
26/05/2006 09:50:24
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Informix
Miscellaneous
Thread ID:
01124304
Message ID:
01125257
Views:
13
>Looks like you have to resort to the old way of binding to events. That is, write a FLL that changes the window procedure of the Control and use _Execute() to run some VFP code in this case.

Christof, thank you.

Where to find sample about using this technique ?

The HTML displayed in Web Browser is generated by VFP Report Listener. I think it is possible to change Listener XML stylesheet so that it adds javascript to xml which closes web page like

body onkeydown="if (!event.ctrlKey && !event.altKey && event.keyCode==27)
window.close();"

How to close VFP form if browser window is closed ?
How to call vfp code from javascript ?

Doug has second article in FoxTalk which describes how to create drill-down reports using new VFP Report preview window.
Should I switch to this instead of trying to use Web Browser control ?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform