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

set pushpin symbol

This is a discussion on set pushpin symbol within the MapPoint Desktop Discussion forums, part of the Map Forums category; HI Using VB6 and MAP OCX methods When the map is refreshed we re-draw the pushpins with code below - ...

  1. #1
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

    set pushpin symbol

    HI
    Using VB6 and MAP OCX methods

    When the map is refreshed we re-draw the pushpins with code below -

    Dim objLoc As MapPoint.Location

    Set objLoc = mc1.ActiveMap.GetLocation(tb!MapLat, tb!maplon)
    mc1.ActiveMap.AddPushpin(objLoc, jobText).BalloonState = geoDisplayBalloon

    mc1 is the ocx
    My question is how can we set the symbol of each pin depending on the record status that is being read?


    Thanks in advance

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

    Symbol

    Dim mySymbols As MapPoint.Symbols
    Dim mySym As MapPoint.Symbol

    Set mySymbols = myApp.ActiveMap.Symbols

    'Import a custom symbol
    Set mySym = mySymbols.Add("MyBitmap.bmp")

    'Set the symbol of the pushpin
    myPushpin.Symbol = mySym.ID

    You can also use one of the 255 predefined symbols in MapPoint (see helpfile).

    Greetings, Jack.

  3. #3
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

    pushpins

    Hi Jack
    Thanks for reply, followed it until -

    'Set the symbol of the pushpin
    myPushpin.Symbol = mySym.ID

    The ocx on the form is called mc1 and I can see no way of setting mySym.ID. Any ideas.

    Thanks

  4. #4
    starbuck's Avatar
    starbuck is offline Member Green Belt
    Join Date
    Oct 2003
    Posts
    68

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [C#] MappointControl - Pushpin symbol
    By suamikim in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-23-2005, 03:02 AM
  2. Return Pushpin Symbol
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-27-2005, 03:12 PM
  3. Adding custom pushpin symbol
    By M.Vrolijk in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-20-2004, 07:55 AM
  4. Cannot see the Symbol ID from the Pushpin object after searc
    By fedir in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-25-2003, 08:06 PM
  5. Is there a way to use a different pushpin symbol w....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-01-2001, 08:59 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