FLTK logo

Re: [fltk/fltk] Tooltip causing Window to "unfocus" on Windows (#261)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Tooltip causing Window to "unfocus" on Windows (#261) Kevin Routley Aug 26, 2021  
 

I poked at this a little bit, with only negative results. The issue is "limited" to a transit between two widgets with an active tooltip.

See my screen cap:
fltk_tt

Initially, hovering the mouse over a button and then away causes the tooltip to appear and vanish without any focus change.

But when moving between two buttons with the tooltip open, that is when a focus change may happen. [i.e. hover over button A, tooltip A appears; move the mouse to button B, tooltip B appears]. It also appears to be related to the speed of the transit.

I think this eliminates the hypothesis of the tooltip being "outside of" the window being the problem. If that was the problem, then a simple "tooltip appears, tooltip vanishes" would also cause a focus change.

I also tried disabling the "possible fix for the Windows titlebar" code. Doing so had no effect.

I believe the problem is at a lower level, i.e. with window transitions. When the mouse leaves button A, the tooltip window is hidden. The mouse enters button B, and the tooltip window is shown. Depending on the speed of the transition, the mouse may be over the parent window for long enough to register a focus change.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.