shani@TAURUS.BITNET (02/12/89)
Anyone has an idea how to simulate a double-click on HC? my expirience is that if you doubleclick a button, HC treats it as a single click... AdvThanksance O.S.
johnsot@jacobs.CS.ORST.EDU (Tim G. Johnson) (02/13/89)
In article <968@taurus.BITNET> <shani%TAURUS.BITNET@CUNYVM.CUNY.EDU> writes: > Anyone has an idea how to simulate a double-click on HC? my expirience is >that if you doubleclick a button, HC treats it as a single click... The method I've always used to Make HC accept double-clicks as such is to use a wait in the mouseUp script: on mouseUp wait 10 ticks --60 ticks in a second - adjust to your liking. if the mouseclick then --double-click script else --SIngle-click script end if end mouseUp This doesn't check if the second click was actually on the button, only if the mouse was clicked again. Hope that is OK. -Tim G. Johnson -johnsot@mist.CS.ORST.EDU
carterbk@apple.com (Bryan 'STAKMan' Carter) (02/14/89)
In article <968@taurus.BITNET> shani@TAURUS.BITNET writes: > Anyone has an idea how to simulate a double-click on HC? my expirience is > that if you doubleclick a button, HC treats it as a single click... The following was submitted, but does not check to see if the cursor was within the rect of the button: on mouseUp wait 10 ticks --60 ticks in a second - adjust to your liking. if the mouseclick then --double-click script else --SIngle-click script end if end mouseUp Here is the script which will check for the mouseLoc: on mouseUp wait 10 ticks --60 ticks in a second - adjust to your liking. if the mouseclick ANDB the clickLoc is within the rect of me then --double-click script else --SIngle-click script end if end mouseUp You may wish to set the "wait 10 ticks" to "wait 15 ticks", as 1/4 of a second is an average double-click response time. (This 'average' is based upon 450 case studies I did.) Have Fun!! 'STAKMan'aging, Bryan K. 'STAKMan' Carter All opinions/views/comments are mine!! <<<There are two of every kind of snow flake in the world, it just depends upon who's second grade class your in.>>>