MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




set pushpin symbol

This is a discussion on set pushpin symbol within the MapPoint 2006/2009 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 - ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-18-2003
starbuck's Avatar
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-19-2003
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-19-2003
starbuck's Avatar
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 10-19-2003
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
got it

Got it
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
[C#] MappointControl - Pushpin symbol suamikim MapPoint 2006/2009 Discussion 4 11-23-2005 02:02 AM
Return Pushpin Symbol Anonymous MapPoint 2006/2009 Discussion 1 04-27-2005 02:12 PM
Adding custom pushpin symbol M.Vrolijk MapPoint 2006/2009 Discussion 2 09-20-2004 06:55 AM
Cannot see the Symbol ID from the Pushpin object after searc fedir MapPoint 2006/2009 Discussion 0 11-25-2003 07:06 PM
Is there a way to use a different pushpin symbol w.... Anonymous MapPoint 2006/2009 Discussion 1 08-01-2001 07:59 AM


All times are GMT -5. The time now is 11:49 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Flights to Dubrovnik
Book cheap flights to Dubrovnik online at Holiday Hypermarket. Don't miss out on a fantastic holiday for fantastic value. Book soon!

Personal Travel Agent'
Whatever your travel needs your personal Travel Agent can help. Travel Counsellors are a Queen's Award winning Travel Agent

Cheap Holidays to Turkey
If you’re looking for cheap holidays to Turkey then dealchecker.co.uk is the place for you! Our search helps you see real prices from the UK’s top holiday companies all in one go.

Holidays to St Lucia
Holidays to St Lucia will leave you smiling. The spectacular scenery and the warmth of the locals make holidays to St Lucia unforgettable.

Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.

Bargain family holidays
We can help you find family holidays at bargain prices when you check out the options at Travel.co.uk

Holidays in Gran Canaria
Have some fun in the sun on the Canary Islands! See On The Beach for information on holidays in Gran Canaria.


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