Hi to all. I need to disable right mouse button when i am over the map with the pointer.
How can i solve my problem![]()
Program-language: Delphi
Thanx a lot for any answer
This is a discussion on Disable Right mouse button within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi to all. I need to disable right mouse button when i am over the map with the pointer. How ...
Hi to all. I need to disable right mouse button when i am over the map with the pointer.
How can i solve my problem![]()
Program-language: Delphi
Thanx a lot for any answer
Source code ... add after first Body tag
<SCRIPT language="JavaScript">
<!--
var message="Dooh!! The right-click has been disabled on this page!";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</SCRIPT>
Dont do Delphi but.....
In the map control's BeforeClick event, if the Button parameter is geoRightButton then set the Cancel flag.
HTH
M.
There are currently 1 users browsing this thread. (0 members and 1 guests)