Re: mouse outside window

new topic     » goto parent     » topic index » view thread      » older message » newer message

chrissy wrote:

> I need to know when the mouse cursor (in Windows)
> leaves a window.

To track the mouse, you can:

1. Set a timer when you start tracking.

2. When the timer goes off, use getMousePos to find the position of the
mouse.

3. Use isScreenPointIn to find if the mouse is still in the window

4. Use onLostFocus to see if the window loses focus during the drag.


Don't forget to kill the timer when you are done tracking the mouse.

Hope this helps!

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu