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

Pushpin State

This is a discussion on Pushpin State within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, How do I loop through pushpins objects to hide any pushpin who’s ballonstate is set show to MapPoint.GeoBalloonState.geoDisplayNone . ...

  1. #1
    JoeBo is offline Member Yellow Belt
    Join Date
    May 2007
    Posts
    31

    Pushpin State

    Hi,

    How do I loop through pushpins objects to hide any pushpin who’s ballonstate is set show to MapPoint.GeoBalloonState.geoDisplayNone .

    Regards,
    Joe

  2. #2
    diyguypaul is offline Junior Member White Belt
    Join Date
    Sep 2007
    Posts
    3

    Re: Pushpin State

    What I did was load a custom symbol that was completely transparent. Then change the symbolid to the new one.

    Only problem is custom symbols are very slow

  3. #3
    Whitson is offline Junior Member White Belt
    Join Date
    Dec 2006
    Posts
    3

    Re: Pushpin State

    Hey Joe,

    Here's some Excel VBA to do this

    Sub HidePins()
    ' Attach to already-running instance of MapPoint
    Set objMpApp = GetObject(, "MapPoint.Application")
    Set ObjMap = objMpApp.ActiveMap

    'set this to the name of your pushpins
    Set objDataset = ObjMap.DataSets("My Pushpins")
    Set objRecordset = objDataset.QueryAllRecords

    'hide screen while updating, it's much faster that way
    objMpApp.Visible = False

    With objRecordset
    'move to the first pushpin and then loop through them all
    .MoveFirst
    Do Until .EOF
    With .Pushpin
    '.BalloonState = geoDisplayBalloon
    '.BalloonState = geoDisplayName
    .BalloonState = geoDisplayNone
    End With
    .MoveNext
    Loop
    End With

    'show the map now
    objMpApp.Visible = True

    end sub

  4. #4
    JoeBo is offline Member Yellow Belt
    Join Date
    May 2007
    Posts
    31

    Re: Pushpin State

    Hi Whitson

    Thanks for the reply, I was able to adapt your code to my requirements, Thank you.

    Regards
    Joe

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I need to a map showing only my state with the nam....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-20-2012, 03:40 PM
  2. Open map in pan state
    By mtcook01 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-13-2007, 02:04 AM
  3. country or state?
    By Rick in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 04-21-2006, 02:59 PM
  4. Turning on all pushpin Balloon sTate
    By Anonymous in forum Products: Pushpin Tool, Single State Mapper
    Replies: 1
    Last Post: 02-18-2004, 11:24 AM
  5. State Sums
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-08-2002, 09:19 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