Hi,
I would like to find out how many highlighted places (not pushpins) are currently in a MapPoint control. I don't need their details at the moment, just a count of how many there are will be fine.
Please can you help.
Thanks.
Regards,
Jonny
This is a discussion on Highlighted places in MapPoint control within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I would like to find out how many highlighted places (not pushpins) are currently in a MapPoint control. I ...
Hi,
I would like to find out how many highlighted places (not pushpins) are currently in a MapPoint control. I don't need their details at the moment, just a count of how many there are will be fine.
Please can you help.
Thanks.
Regards,
Jonny
Hi,
I assume you mean that the user can highlight things and that you have to detect it.
If a user wants to highlight something he must first select it. So the place to be is in SelectionChange. There you check the selection and if it is Location then assign the selection to a Location object.
Then in the MouseUp event you can check if this location is assigned and highlited. If so you can keep it in a list. You can also check here if one of your list is disabled highliting. Dont forget to set it to null again to not do unnecacary CPU in the next MouseUp
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Yes, I am trying to determine whether or not to set the print area option of the PrintOut method to geoPrintHighlightedPlaces.
Yes, that makes sense. Thanks Wilfried.If a user wants to highlight something he must first select it. So the place to be is in SelectionChange.
Regards,
Jonny
There are currently 1 users browsing this thread. (0 members and 1 guests)