harefort
09-16-2009, 10:54 AM
Hello everbody!
I'm trying to create dialog window to display errors and warnings, that closes automatically when the mouse cursor has moved a certain distance away from it.
For this I need a callback function that is called whenever the user moves the mouse.
There's global variable that stores the cursor position on the screen at all times: mouse.screenpos - but I would need constant update on that.
Do you know a good way of doing this?
Thanks!
-Sascha
I'm trying to create dialog window to display errors and warnings, that closes automatically when the mouse cursor has moved a certain distance away from it.
For this I need a callback function that is called whenever the user moves the mouse.
There's global variable that stores the cursor position on the screen at all times: mouse.screenpos - but I would need constant update on that.
Do you know a good way of doing this?
Thanks!
-Sascha
