I have a series of pickup/drop off address pairs. I make a pushpin for pickup and one for dropoff, and draw a line between them.
I have written a mousedown even that is able to detect if a pushpin is clicked, but I don't seem able to see if the line between them has been clicked on. What I want to be able to do here is process the some code if they click on either pushpin OR the line connecting them. TIA.
Dim oMap As MapPointCtl.Map
Dim oResults As MapPointCtl.FindResults
Dim oResult As Object
On Error Resume Next
Set oMap = Form1.MappointControl1.ActiveMap
Set oResults = oMap.ObjectsFromPoint(X, Y)
For Each oResult In oResults
if Left(oResult.Name, 2) = "PU" or _
Left(oResult.Name, 2) = "DO" Then
<code here to process the Pickup or Dropoff>
Next