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

Werner Staudacher gambas-user at lists.sourceforge.net
Wed Aug 24 21:05:15 CEST 2005


Benoit Minisini schrieb:

>On Wednesday 24 August 2005 01:23, Werner Staudacher wrote:
>  
>
>>Benoit Minisini schrieb:
>>    
>>
>>>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,
>>>      
>>>
>>Hi Benoit
>>
>>The sample Drag&Drop is made with the TreeView, but for the ListBox
>>(Sorry, previously i called it ListView) has this function another meaning.
>>You now how to do it with ListBox?
>>
>>Regards, Staudi
>>
>>    
>>
>
>Mmm... You should use a ListView instead if you want to do that...
>
>Regards,
>
>  
>
ok, and thanks




More information about the User mailing list