Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close webbrowser form with Esc key
Message
De
26/05/2006 09:50:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Informix
Divers
Thread ID:
01124304
Message ID:
01125257
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform