method SwimLane.PointToPosition (X as Long, Y as Long)
Converts display coordinates to element's position.

TypeDescription
X as Long A Long expression that determines the x-coordinate on the screen. On return it gets the x-coordinate on the surface.
Y as Long A Long expression that determines the y-coordinate on the screen. On return it gets the y-coordinate on the surface.
Use the PointToPosition / PositionToPoint property to convert screen coordinates to surface coordinates or reverse. The PointToPosition / PositionToPoint convert the giving point based on the ScrollX, ScrollY and Zoom conditions ( scroll position and the zooming factor of the surface ). The ElementFromPoint property gets the element from the surface giving the position on the surface. The ElementFromPoint(-1,-1) property returns the element from the cursor or nothing if no element at the current cursor position.