[Gambas-user] How can i determine over wich row is the mouse moving by a listbox?

Benoit Minisini gambas at ...1...
Mon Aug 22 16:20:44 CEST 2005


On Monday 22 August 2005 00:59, Werner Staudacher wrote:
> Benoit Minisini schrieb:
> >On Saturday 20 August 2005 19:27, Werner Staudacher wrote:
> >>Hi all
> >>
> >>Is it possible to find out over wich row the user is moving the mouse?
> >>I want this to give more infos about the row-item into the tooltip (or
> >>somewher else).
> >>
> >>Thanks, staudi
> >
> >Where ? When ? How ? 8-o
>
> Sorry my bad explanation.
> When i move the mouse over a row from a listview i want to now how i can
> determine the listview.row or index (?), even if the row is not
> selected, so that i can read this listview[index].text
>
> Thanks
>

Normally, there is a 'Find(X, Y)' method that returns the item from (X, Y) 
coordinates relative to the listview control top-left corner.

You can look in the Drag & Drop example to see some code...

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list