Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable rightclick of Web Browser Control
Message
From
18/12/2001 14:52:12
 
 
To
18/12/2001 12:46:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00595476
Message ID:
00595764
Views:
41
>>>>Hi Dragan.
>>>>
>>>>Thanks for your attention.
>>>>
>>>>I´ve found some code such that of bravenet... unfortunately, those scripts shows a popup (alert window...)... I really would like to simply ignore rightclick, without shows anything to the user... as office xp´s outlook does.
>>>
>>>You can simply put a Nodefault in the rightclick event of your control. If that can't be done directly, you have a _webbrowser (or something with the similar name) wrapper control in the FFC classes, and you can use that and do the same thing with its Rightclick code.
>>
>>There is no Rightclick event for the OLE control and if you put the web browser control in a container the Rightclick does not fire. I think your original suggestion should work if the user will only navigate to html pages that the programmer has created or has some control over.
>
>The HTML loaded can be manipulated. The script can be inserted locally into any page as soon as it's loaded, and then the thus adjusted HTML can be reloaded into the browser control. This would require some coding - locating the position in the page head to insert the script into - but should work even without any temporary disk files.

Yes, that would be a way to do it. It would take adding the script and an onmousedown attribute to the BODY tag, as well as reloading after changes as you say. Or does the script take care of that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform