Re: [Tk] Double, Triple, Quadruple, <i><d><d><q><d>
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: [Tk] Double, Triple, Quadruple, <i><d><d><q><d>

From: Sektor van Skijlen <ethouris@guess.if.gmail.com.is.valid.or.invalid>
Date: Thu Apr 20 2006 - 22:30:14 CEST

Dnia 20 Apr 2006 13:08:52 -0500, Kip Rugger skrobie:
> Your example of bind . <i><d><d><q><d> { whatever } does not involve
> any timers: it works pretty much as in DOOM.

Yes, right. Didn't try it; of course, it just collected events until the whole
queue is filled with this sequence.

> For mouse clicks, you do have timers, but only for the Double- etc
> events.

Yes, that's what I'm interrested about.

> In X, the time interval between multi-clicks is a property of the
> application. Different apps can use different values, although that
> is almost surely a bad idea. A default value to use can be
> distributed through the X resource system using the "multiClickTime"
> resource.

> Tk processes X resources, but does not act on multiClickTime.
> Instead, for all platforms it uses 500 ms. You can't change this
> value.

I can't check it out on X, but looxlike on Windows it also does not depend on
the double click interval settings for mouse.

I'm developing "initial scratches" for a GUI library in C++. I try to use Tk
as a basis for good ideas.

I try to find appropriate approach for multi-clicks. As various systems allow
a user to change the double-click interval, I consider using this value for
the time interval. Despite that the time interval of 500 ms is good for most
users and I hardly saw anyone changing it.

-- 
//  _    ___         Michal "Sektor" Malecki <sektor(whirl)kis.p.lodz.pl>
\\ L_ |/ `|  /^\ ,()                         <ethourhs(O)gmail.com>
// \_ |\  \/ \_/ /\ C++ bez cholesterolu: http://www.intercon.pl/~sektor/cbx
"I am allergic to Java because programming in Java reminds me casting spells"
Received on Sun Apr 30 03:19:32 2006