Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Tk click/doubleclick

by baku (Scribe)
on Feb 05, 2001 at 20:14 UTC ( [id://56416]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk click/doubleclick
in thread Tk click/doubleclick

(me again... logged in now :-) )

For the record/from the CB: the input device in use actually has 4 (buttons?): left single, left double, Rx1, Rx2; so there will be a fixed double-click timeout. Since this is for Win32, something of the nature of a main loop timer or Tk timeout like the above (probably invalid/nasty) pseudocode might be The Right Thing...

The Tk functions you need seem to be $timeout = Tk->after (time, \&sub); and Tk->after(cancel=>$timeout); which I found in libwww-perl archives.

Hope this helps!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://56416]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found