Community of VE/MapPoint Users and Developers
This is a discussion on Is there any event for when the route is changed? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Is there any event generated or any other way of knowing when the route has been changed?...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
|
There's the RouteAfterCalculate event, which is called with the route object as a parameter - see the Help file for documentation. I see there's also a RouteAfterOptimize() which will work in a similar manner. (you might want to trap both of them) Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| ||||
|
Those will tell you when MapPoint has modified a route. Trapping when the user has modified a route might be a bit more difficult. Perhaps check the number of waypoints in the route? Have they been added or removed? Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
|
There is no event that will do that so easy |
| |||
|
How about using the SelectionChange event? You can test for TypeOf is WayPoint then do your stuff: Code: Private Sub map_SelectionChange(ByVal pNewSelection As Object, ByVal pOldSelection As Object)
If TypeOf pNewSelection Is Waypoint Then
' check to see if it's an addition or deletion, etc
If map.ActiveMap.ActiveRoute.Waypoints.Count > oldcount Then
' if it's an addition
ElseIf map.ActiveMap.ActiveRoute.Waypoints.Count < oldcount Then
' if it's a deletion
End If
End If
End Sub
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exporting Changed data back to Excel | kbeese | MapPoint 2006/2009 Discussion | 0 | 05-17-2005 03:57 PM |
| Where is the Quit event? | Anonymous | MapPoint 2006/2009 Discussion | 3 | 04-08-2005 07:36 AM |
| mouse down event | henemonster | MapPoint 2006/2009 Discussion | 1 | 03-31-2003 02:04 PM |
| Can the geography reference be changed in the MapP.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-31-2002 04:42 PM |
| Several Postcodes in England have now been changed.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-13-2002 07:52 AM |
Exeter Flights
Visit Holiday Hypermarket online to find all the essential information about Exeter Airport and Exeter flights. Booking is quick, easy and cheap with Holiday Hypermarket.
Portugal Weather
Check out Portugal Weather - Travel Counsellors details information on Portugal including, weather, flights and accommodation.
Italy Holiday
An Italy Holiday is full of interesting stuff for the casual tourist and even more for the educated visitor. Check out the latest great deals at dealchecker.co.uk.
Holidays to Antigua
The Holiday Place has fantastic deals on holidays to Antigua. Visit our website to view special offers on holidays to the Caribbean.
Cheap Portugal Holidays
Want to know what the best time to book cheap Portugal holidays is? Well have a look on ulookubook.com for some useful information to save your cash. Golf, tennis and cycling are all very popular here.
All inclusive holiday
Travel.co.uk is a travel comparison service which makes it easy to search and find your all inclusive holiday.
Cheap Holidays in Lanzarote
Now's the time to get up and go visit the Canary Islands! View cheap holidays in Lanzarote only at On The Beach.