Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browser control and context menu
Message
From
29/05/2007 16:46:28
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01228919
Message ID:
01229160
Views:
14
Thanks Rick.

There no problem modifying the source document since I'm creating and controlling the content before rendering it in the web browser control. As such, Dragan's approach work well.

Having said that though, I'll be trying your solution too.

Regards,

Mike


>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform