From Xojo Documentation


MobileCanvas.PointerDown(position As Point, pointerInfo() As PointerEvent)

Supported on Mobile.

Called when the pointing device (finger or pen) touches the Canvas.

Sample Code

This code saves all touch points to an array, which is used to display circles in the Paint event:

// touchPoints is an PointerEvent array property of screen the Canvas is also on
touchPoints = pointerInfo

This code goes in the Paint event handler:

For Each tap As PointerEvent In touchPoints
g.DrawingColor = Color.Blue
g.FillOval(tap.Position.X, tap.Position.Y, 30, 30)

See Also

PointerDrag and PointerUp events.