PDA

View Full Version : Shading/Highlighting



Anonymous
11-23-2003, 08:42 PM
When in MP and you click on a title, such as Canada, or British Columbia then that region is in a different color and the surrounding is changed to a gray color. Does anyone know if this is possible in code. i.e. is there a method call to select a region/country...

Thanks.

Martel
11-24-2003, 10:06 PM
The following VB has the same effect as clicking on the country, state or region:



Dim oMPMap As MapPoint.Map
Dim oMPApp As MapPoint.Application
Dim oMPLoc As MapPoint.Location

Set oMPApp = CreateObject("Mappoint.Application")
Set oMPMap = oMPApp.ActiveMap

oMPApp.Visible = True
oMPApp.UserControl = True

'Find a place and select it
Set oMPLoc = oMPMap.FindPlaceResults("Canada")(1)
oMPLoc.Select

Anonymous
11-25-2003, 01:36 PM
Thanks!