Listbox, get the row number by x and y

Hello all!
I’m playing with contextual menu, and I need to select the row before the contextual menu is displayed… But in ConstructContextualMenu event I have x and y properties…
How can I determine on which row the user creates the contextualmenu?

Many thanks!

Hi there,
I don’t know of a way of doing this, so unless anyone else says otherwise you’ll need to make your own method, using the y position, compared to the top of the listbox, plus the scroll position and the height of the row…
Hamish ?

…or you could use RowFromXY. Gosh, I’m a bit rusty!

Great! Thanks to both for your answer!