Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Mousebehaviour

by baku (Scribe)
on Feb 20, 2001 at 19:34 UTC ( #59670=note: print w/replies, xml ) Need Help??


in reply to Mousebehaviour

You could, perhaps, "grab" the mouse pointer, so that your app will receive all mouse events. This *should* work under Win32 as well as Linux (unless using a particularly cruel & unusual window manager); the Tk::grab manual page describes this. (Common use for grabbing a pointer are menus or drag & drop; the application whence the dragged item is being moved maintains control of the pointer until the button is released, the source of some nasty annoyances if you click "File" in Netscape right when it decides to do a very slow DNS lookup.) You could then scan for e.g. a keypress or some other event not likely to be accidental to release your grab on the pointer.

Best of luck

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://59670]
help
Chatterbox?
[ambrus]: MLX: if it's a work email, then it's probably not Uncle Sam that matters, but what the account managing server at work thinks your name is. Those can differ. For example, we've had two co-workers with identical real name at one point,
[ambrus]: so one got a stupid suffix in the email account (people have email address based on their real name here usually).

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2017-01-19 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.