On 31.10.2008, at 00:29, Albrecht Schlosser wrote:

> When the mouse leaves the (main) window, FLTK doesn't get any more  
> mouse
> events, and thus the application can't know that the mouse is  
> outside of
> the window. With TrackMouseEvent() you do always get a FL_LEAVE event.

Ah, good point. So a window (including OpenGL) embedded in another  
window doesn't really have this problem. For all top-level windows, a  
LEAVE event should be sent by the OS anyway (any OS, btw.). I remember  
that for Windows 2000 (or was it 98), there was one particular  
situation where the LEAVE event was lost due to a bug in the OS  
(leaving the window through the title par in a pixel-by-pixel way). I  
doubt that this particular call would have changed anything.

As for current FLTK, we are testing LEAVE for every widget on every  
MOVE event anyways, so it's likely that the given call is not needed  
at all for sub windows, maybe not even for top level windows. Again, I  
have no MS Windows machine available ATM, so please ignore me if I  
don't know what I am talking about ;-)

----
http://robowerk.com/


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

Reply via email to