Hi,
I'm using the MapPoint ActiveX control in PowerBuilder to calculate routes. On a window I have this control and when it opens I load the appropriate data in the background and place a pushpin on the control for every site. Now the user right clicks the pushpins he wants and chooses "Add to route" from the MapPoint popup menu. This works fine but there's no proper event to code something to change the stopTime (which I have loaded in the background) of that wayPoint. So it is 0. Somewhen the user right clicks the control and chooses to generate the route. The next event is "routeAfterCalculate" which is to late to provide the stopTime because the route is calculated already. Of course I could now (in routeAfterCalculate) compare the stopTimes of the wayPoints to my background data and if there's any difference call the calculate() method again. But that's a lot of overhead. Is there any possibility to either (a) provide a value to a pushpin which is passed automatically to the wayPoints stopTime when the pushpin is added to the route or (b) write some code which is executed when a pushpin is added to a route or before a route is calculated?
TIA
Chris Werner