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

Drawing shapes on the ocx

This is a discussion on Drawing shapes on the ocx within the MapPoint Desktop Discussion forums, part of the Map Forums category; Having found out how to select the pushpins within a shape, I'm now toiling to find out how to draw ...

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

    Drawing shapes on the ocx

    Having found out how to select the pushpins within a shape, I'm now toiling to find out how to draw the shape real time, i.e. as the User clicks on the map.

    I've been through the help and the only example given is to create the shape using the co-ordinates AFTER the User has clicked them. I've started writing code where the User defines the shape to be drawn, we then grab the location of clicks as they occur and hold them in an array and then use these values to draw the shape when the User double clicks on the map.

    I can't believe this there is no way of telling the Map to adopt a certain drawing tool as in the toolbar in MapPoint itself. Can someone please tell me if this can be done !!

    Thanks again

    Rob

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Check out the code I posted in this thread:

    http://www.mp2kmag.com/mappoint/disc...pic.asp?t=3327

    Un comment the line below so it will draw the shape.
    'objmap.Shapes.AddPolyline objLocs

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Thanks for the response but this wasn't really what I was meaning. What I'm trying to do is have the shape draw real time. For example, if we're drawing a polyline, clicking once would start the draw, clicking again would stop and draw the first line and start a second and so on until we've drawn the shape and finish it with a double click or something.

    Is there no easy way to do this or recreate the PolyLine tool in MapPoint ? If not I'd see this as quite a weakness in the ocx.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Drawing Shapes
    By Matrices in forum MapPoint Desktop Discussion
    Replies: 7
    Last Post: 11-07-2006, 10:04 AM
  2. Associate shapes with pin
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-30-2004, 09:00 AM
  3. Drawing Tools
    By uspickle in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-13-2004, 08:51 AM
  4. Shapes behind roads?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-27-2003, 09:35 AM
  5. not to move shapes
    By Manuel in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-19-2003, 01:46 PM

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