Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browser Control context menu
Message
 
To
25/09/2002 20:32:03
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00704526
Message ID:
00704531
Views:
23
This message has been marked as the solution to the initial question of the thread.
These work on Internet Explorer but can always been circumvented in someway:

Disable right click in IE use this in your HTML:
<body oncontextmenu="return false">
If you want to intercept a Right Click try this Java Script:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function init() {
    alert ("init()");
    document.onmouseup= myfunc;
}
function myfunc() {
    if (window.event.button == 2) {
        document.write("\nRight-clicked\n");
        window.event.cancelBubble= true;
        return 	
    }
}
</SCRIPT>
<BODY onLoad="init()">
<DIV ID=A>Please right-Click in window</DIV>
</BODY>
Regards
Mark

>Though it doesn't seem to be possible from exposed methods/events is there way to prohibit or intercept and change completely right mouse click context menu of Browser Control, which is effectively IE menu, without affecting IE itself.
>
>Thank you
>Michael
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform