Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

Disable Right mouse button

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 ...

  1. #1
    Fisherman´s Friend is offline 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

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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>

  3. #3
    Mossoft is offline 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I hide or disable the optimisation button?
    By stephenmillington in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-30-2005, 06:18 AM
  2. who to locate a pushpin with a rigth button
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-29-2004, 02:41 PM
  3. Remove Close Button
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-01-2004, 06:56 AM
  4. Disable left mouse button
    By dearmhr in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-22-2003, 11:48 AM
  5. Disable right mouse button
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-10-2003, 06:09 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96