robinary
10-17-2007, 07:04 AM
After I have calculated my route I show a grid at the side of the mappoint control, the user can then click on of the calls in the grid & mappoint then zooms in on the call selected in my grid.
Is it possible to access the directions/itinary panel and programatically position a line in it. IE I want to jump to the line in the panel where is says "Arrive etc" for the waypoint selected.
any help extremley appreciated
Wilfried
10-17-2007, 12:55 PM
Hi,
I'm not sure I understeand the question, but every waypoint in a route has a location property, so you can jump to it. Is this answering your question ?
robinary
11-27-2007, 05:12 AM
I'll try again.
After I have calculated my route, a map is drawn and an iternary of the route in another pane. I want to be able to programmatically position the itinary on different waybill points. Not the map, but the itinary window.
/hope this makes sense
John.Sewell
11-28-2007, 12:54 PM
Just posted this for someone else... is this what you want? (not doing what you want to do, but maybe adaptable).
gobjRoute.Calculate
For x = 1 To gobjRoute.Directions.Count
If Left(gobjRoute.Directions.Item(x).Instruction, 10) = "Rest break" Then
Set oLoc(3) = gobjRoute.Directions.Item(x).Location
Exit For
End If
Next x
Wilfried
11-29-2007, 08:17 AM
Hi,
Now I understand it. You can adapt code example from John to loop trough the directions and create the direction window yourself, for example using another form with a listbox on it. Then you have it in control yourself.
robinary
12-01-2007, 12:00 PM
That'll will do it. Many thanks