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

getting the clicks on the mapcontrol

This is a discussion on getting the clicks on the mapcontrol within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi ! I am new to vb so maybe it's not exactly a mappoint question: I know with the _mousedown ...

  1. #1
    blackmap is offline Member Yellow Belt
    Join Date
    Dec 2002
    Posts
    39

    getting the clicks on the mapcontrol

    Hi !

    I am new to vb so maybe it's not exactly a mappoint question:
    I know with the _mousedown event I can get the user clicking on the map.

    But how do I get the several single clicks on the map e.g. to let the user draw a shape or measure distance?

    Thanks


    Peter

  2. #2
    AndyYule is offline Junior Member White Belt
    Join Date
    Jan 2003
    Posts
    8

    MouseDown

    Use the MouseDown. MouseMove and MouseUp in conjunction with each other. Set form properties to store the locations ie for each time the user does mousedown with the Ctrl key pressed you log the XY coordinates in an array....

    I'm trying to draw a marquee on the map to allow selection of multiple pushpins my mousedown event records the xy start coordinates, my mouseup event records the xy end coordinates - if they are not the same the user has dragged across the map. Convert xy coords to location and calculate width, height of shape and add the shape - well it's a good plan except my shape isn't appearing!

    Anyway hope that helps...

  3. #3
    AndyYule is offline Junior Member White Belt
    Join Date
    Jan 2003
    Posts
    8

    Found this example

    Found this example from John Meyer in the forum, might help...


    http://www.mp2kmag.com/mappoint/disc...light=addshape

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Updating map in mapcontrol, through secondary thread
    By malkotian in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-16-2005, 02:44 PM
  2. Getting the Zip code and City when user Clicks Map
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-21-2005, 02:39 AM
  3. Canceling mouse clicks in C++
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-01-2004, 02:52 AM
  4. When the user clicks on the MP2K map, the 'Select ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-11-2001, 04:19 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