Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web browser control and context menu
Message
 
À
28/05/2007 16:37:06
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01228919
Message ID:
01229136
Vues:
14
You can use the approach Dragan mentions, but that requires that you modify the source document that is actually loaded.

There's another more generic way by attaching an interface to the document. Specifically you need to implement this interface and attach it to the Web Browser document:
DEFINE CLASS IHtmlTextContainerEvents AS MSHTMLEventBase OLEPUBLIC
   IMPLEMENTS HTMLTextContainerEvents IN "MSHTML.TLB"
Hooked up with something like this (make sure the document is fully loaded before you do this):
*** Handle Container Events on the document's Body
this.oTextContainerEvents = CREATEOBJECT("IHtmlTextContainerEvents")
EVENTHANDLER(loEdit.Document.Body,this.oTextContainerEvents)
+++ Rick ---

>Does anyone know if it is possible to implement a custom VFP context/shortcut menu on the web browser control hosted in a VFP form?
>
>TIA
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform