property Rollist.ItemFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as Long
Retrieves the item from cursor.

TypeDescription
X as OLE_XPOS_PIXELS A long expression that indicates the x-coordinate in client coordinates.
Y as OLE_YPOS_PIXELS A long expression that indicates the y-coordinate in client coordinates.
Long A long expression that indicates the index of item over cursor.

Use the ItemFromPoint property to get the item from cursor. The ItemFromPoint property requires client coordinates so, X and Y coordinates must be translated to client coordinates. For instance, in VB you need to use functions like Screen.TwipsPerPixelX and Screen.TwipsPerPixelY to get the client coordinates.