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

pushpin symbols from imagelist?

This is a discussion on pushpin symbols from imagelist? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm rather new to MapPoint. My current vb.net project requires the use of many custom pushpin symbols. Easy enough: Code: ...

  1. #1
    MapMonkey's Avatar
    MapMonkey is offline Junior Member White Belt
    Join Date
    Jun 2004
    Posts
    2

    pushpin symbols from imagelist?

    I'm rather new to MapPoint. My current vb.net project requires the use of many custom pushpin symbols. Easy enough:

    Code:
    If File.Exists(Application.StartupPath & "\Symbols\New.ico") Then
       symNew = mSymbols.Add(Application.StartupPath & "\Symbols\New.ico")
       oMap.DataSets("New").Symbol = symNew.ID
    Else
       oMap.DataSets("New").Symbol = 17
    End If
    However, I would prefer to load the custom symbols from an imagelist, keeping "inquiring minds" from "improving" the symbols used for specified db values (the whole point of the app is to standardize symbology). So far my efforts have failed.

    Q: Are there options to symbols.Add(PathToImage) for loading images into the symbols collection?

    Thanks in advance.
    "Quit worrying about the data and just make it work!" - Former Boss

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Hi, I had the same issue a while back & found no truly slick solution….maybe someone here has one for both of us.

    You could of course pump the images out into temp files at run time.

    What I ended up doing was just loading the custom images by hand into a “blank” map and using it as a starting point…notionally as a sub-class of NewMap.

    Another note…you may already know…it is worth setting up usable names for your symbols and referring to them in code by name rather than index. Aside from being easer to read, it saves you from having to check the MP version to calculate the starting base for custom symbols. You can also trap the errors is something is missing. Setting up an enum works really nice….MyEnum.ASymbol.ToString gives you the name and keeps your typing strong.

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Darn....keep forgetting to put my name on my posts.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Having trouble getting symbols to match MapPoint's symbols
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-07-2006, 02:06 PM
  2. How can I use the Symbols (i.e. car) on a VB form?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-01-2005, 02:23 PM
  3. Custom Symbols
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-20-2003, 01:21 PM
  4. Pulldown-menu with Pushpin-Symbols
    By rms62 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-25-2003, 06:12 AM
  5. Different Pushpin Symbols from Spreadsheet
    By Terry in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-20-2003, 01:52 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