ListBox.ColumnFromXY
From Real Software Documentation
Method
Returns the column index from the passed mouse x,y pixel coordinates.
The parameters are relative to the top, left corner of the Listbox.
Examples
This code in the DoubleClick event of a ListBox obtains the indexes of the cell that was double-clicked.
