[Gambas-user] Documentation glitch with Iconview ?
Benoit Minisini
gambas at ...1...
Tue Jan 8 17:20:06 CET 2008
On mardi 8 janvier 2008, manuel viet wrote:
> I was playing with an IconView (toolkit qt), and realized
> it'd be cool to know when mouse would be over it, and
> where (to know it was hovering over an item or the
> background) ; the MouseMove event looked perfect and
> the wiki says that this event is called "only when
> button1 is down, except for some complex controls like
> Icon & List View ". So I tried, and for me MouseMove is
> raised only if button1 is depressed while moving.
You really mean that you don't get MouseMove events if the first button is
pressed ?
> If I
> change the IconView to a ListView, the MouseMove
> event is raised anytime the mouse, indeed, moves inside
> the control area, as expected. So I'm afraid the wiki is
> not up to date. Side question : how can I do this kind of
> 'tracking' inside this control (if possible at all) ?
>
Actually you should not be able to do that, because it depends heavily on the
internal implementation of the IconView. If you need an IconView with mouse
tracking, and other functions I imagine, maybe you should implement your own
one.
Regards,
--
Benoit Minisini
More information about the User
mailing list