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 2 of 2

Disallow to move manuell added push pins

This is a discussion on Disallow to move manuell added push pins within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm writing a VB6 application using the MapPoint ActiveX control. I`m looking for a methode to disallow move manuell added ...

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

    Disallow to move manuell added push pins

    I'm writing a VB6 application using the MapPoint ActiveX
    control.

    I`m looking for a methode to disallow move manuell added
    push-pins. Did anyone now how I can do this ?

    Somebody in other ducussion group wrote that I can also disable object selection. I did not find the property I can do this.

    Can somebody talk me how I can diabele selection of the object ?

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    hi, there's an article titled "Making pushpins inmoveable" or something like this, you can use, the code in vb6 is:

    Private Sub MappointControl1_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
    Dim sp As MapPoint.Shape
    Dim loc As MapPoint.Location
    If Button = MapPoint.GeoMouseButtonConstants.geoLeftButton Then
    If Not MappointControl1.ActiveMap.Selection Is Nothing Then
    If TypeOf MappointControl1.ActiveMap.Selection Is Pushpin Then
    Set loc = MappointControl1.ActiveMap.GetLocation(80, 0) 'get a location over at the arctic ocean
    Set sp = MappointControl1.ActiveMap.Shapes.AddShape(GeoAuto ShapeType.geoShapeRectangle, loc, 1, 1)
    sp.Select
    sp.Delete
    End If
    End If
    End If
    End Sub


    hope is usefull

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PUSH PINS
    By a_cajun_2 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-07-2005, 08:05 PM
  2. Where are my Push Pins! Help!
    By flymoe in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-20-2004, 04:24 AM
  3. Push Pins
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-14-2004, 07:16 AM
  4. Push Pins
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-09-2004, 01:35 PM
  5. Push Pins
    By Ravi1 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-21-2003, 07:03 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