imacarthur wrote:

> Hi Alvin,
> I *don't* have the tooltip patch applied, so the "feature" is present in 
> the stock builds.
> Your observation about moving the mouse slowly inspired me to a few more 
> experiments...
> 
> - I *thought* that the mouse had to be stationary for the tooltip to pop 
> up, but as Alvin observes, it can sometimes pop up whilst the mouse is 
> moving.
> 
> - Once popped up, the tooltip remains displayed (at its pop position) 
> whilst he mouse moves around the window. (Again, I had "expected" that 
> moving the mouse would probably clear the tooltip? Or maybe it would be 
> dismissed after some timeout period?)
> 
> - Moving the mouse over the tooltip dismisses it. Very occasionally it 
> pops right back up...

These three facts are related and happen, because Fl_Tooltip::enter() is 
called only, if the belowmouse() widget has changed, i.e. when there 
would have been a FL_ENTER and/or FL_LEAVE event as well. This has 
obviously been intended (fewer events to handle in Fl_Tooltip.cxx), but 
may be wrong ?

Case 1: The tooltip pops up while the mouse moves: IMHO, this is a bug 
and should be fixed. I'm looking what should be done, if ... - but I'd 
like to read your comments about this.

Case 2: The tooltip stays visible, while the mouse moves. I tested this 
with other applications, and this seems to be common behavior (at least 
with some applications under Windows). The tooltip disappears, if the 
mouse leaves the widget or enters the tooltip area itself. A good test 
candidate is thunderbird, because it has big buttons (at least in my 
setup). There is also a timeout (about 5 seconds).

Case 3: The tooltip is dismissed, if the tooltip area itself is touched 
by mouse movement and reappears immediately or after a short 
(hoverdelay) timeout. Once case 1 would be fixed, this would change, too 
(in a way that the tooltip would reappear only if the mouse stops moving).

My questions and my opinions are:

1) Should case 1 be fixed?

+1

2) Should there be a timeout to remove the tooltip (5 sec. or ...?)

+1 (5 seconds)

3) Should it really reappear, if the mouse moves without leaving the 
widget (this could also be a group or a complete window) ?

+/-0: I don't know. Thunderbird pops up the tooltip again after the 
mouse stops moving.

Your comments are welcome.

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to