Move a point.

May 14, 2015 at 2:36 PM
Move a point.

Good evening,
I used this code to draw a point on the map:

Private Sub Map0_Mousedown (ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal Y As Long)
 Xx As Double Dim: Dim Yy As Double
 Map0.PixelToProj x, Y, Xx, Yy

 Map0.NewDrawing (dlSpatiallyReferencedList)

 Map0.DrawPoint Xx, Yy, 3, RGB (255, 0, 0)
end Sub

How do I move it without deleting it and reshape it as I drew other points on the map?

May 14, 2015 at 2:37 PM
Sorry but my English is really bad. :-))

May 15, 2015 at 1:57 PM
Moving a drawing point is not possible. You need to clear the drawing and paint again.
Here's a tracking example:

If you have other data that needs to be drawn you can add them on separate drawing layers or create an in-memory shapefile.

I hope it helps,

May 17, 2015 at 3:55 PM
Ok. Done.
Now how can I draw a picture instead of the point?

May 17, 2015 at 4:58 PM

I suggest you use a point shape. Then you can associate it with a bmp and move it with putXY

May 17, 2015 at 5:31 PM
True, but for what I am realizing the Draw method it is perfect, so I would be able to display an image or mini icon instead of the point.

May 18, 2015 at 3:58 PM