MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Disable Right mouse button

This is a discussion on Disable Right mouse button within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 5
Disable Right mouse button

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 12-15-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
disable right mouse key

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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-17-2003
Member
Yellow Belt
 
Join Date: Feb 2003
Posts: 48
Dont do Delphi but.....

In the map control's BeforeClick event, if the Button parameter is geoRightButton then set the Cancel flag.

HTH

M.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
button, disable, mouse


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
How can I hide or disable the optimisation button? stephenmillington MapPoint 2006/2009 Discussion 0 08-30-2005 05:18 AM
who to locate a pushpin with a rigth button Anonymous MapPoint 2006/2009 Discussion 0 06-29-2004 01:41 PM
Remove Close Button Dazzer MapPoint 2006/2009 Discussion 0 04-01-2004 05:56 AM
Disable left mouse button dearmhr MapPoint 2006/2009 Discussion 0 12-22-2003 10:48 AM
Disable right mouse button Anonymous MapPoint 2006/2009 Discussion 3 09-10-2003 05:09 AM


All times are GMT -5. The time now is 11:21 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Tenerife Holiday
Find a great deal on a Tenerife holiday through UlookUbook! Check out the options online...



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59