|
-
Nov 25th, 1999, 05:09 PM
#1
Thread Starter
Hyperactive Member
Allright,
Think of any control that has a click event but does not have a doubleclick event...
I need youz to think of as many possible ways to mimic a double click event for this control...
have a good one 
-
Nov 25th, 1999, 05:11 PM
#2
Hyperactive Member
Use the API to get the interval for the double-click (you can set it manually in the mouse control panel applet)
As soon as there's a click, set a timer to that interval and when that time is passed and there hasn't been clicked again, you know they didn't double-click...
-
Nov 25th, 1999, 07:37 PM
#3
The 0.2 should be replaced by the click time as specified in the control panel (but i was to lazy to look it up )
Code:
Private Sub Command1_Click()
Static dClick As Double
If dClick = 0 Then
'First Click"
dClick = Timer
ElseIf dClick + 0.2 > Timer Then
'Second Click inside timeframe"
MsgBox "Yeehaa"
dClick = 0
Else
'Second Click outside timeframe"
dClick = 0
End If
End Sub
------------------
Vincent van den Braken
EMail: [email protected]
ICQ: 15440110
Homepage: http://www.azzmodan.demon.nl
-
Nov 26th, 1999, 03:58 AM
#4
with the first click, start a timer, with a second click, stop the timer, use a timer with a fast interval, and make it increment a counter on every cycle. if the counter is below a certain number, BINGO!.
------------------
Wossname,
Email me: [email protected] 
-
Dec 7th, 1999, 04:58 PM
#5
Thread Starter
Hyperactive Member
Azzmodan's looks like the best way to do it..
But it's a little buggy some of the time..
Sometimes the double click does not seem to get registered...
[This message has been edited by Inhumanoid (edited 12-08-1999).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|