|
-
Jan 25th, 2000, 01:50 AM
#1
Thread Starter
Hyperactive Member
Hi again.
I have an Image located on my form. I'm using a Click event, but I want to use the DblClick too. When I run my program and click image, it runs well; when I try to double click, click code is generated too. It looks i don't catch the double click time.
PS: When I delete Click ev., DblClick runs well.
------------------
Thanks,
John, 14 years old
-
Jan 25th, 2000, 02:21 AM
#2
PowerPoster
-
Jan 25th, 2000, 02:32 AM
#3
You won't like this but here is what MSDN Help has to say about the Click event
==================
If there is code in the Click event, the DblClick event will never trigger, because the Click event is the first event to trigger between the two. As a result, the mouse click is intercepted by the Click event, so the DblClick event doesn't occur.
=================
But try this: use your mouse-driver software to slow your double-click speed way down. If that fixes the problem, post another question and ask "How can I temporarily change the users DblClick speed?"
------------------
Marty
Why is it called lipstick if you can still move your lips?
-
Jan 25th, 2000, 02:49 AM
#4
Hyperactive Member
Why don't you use right mouse button to do one of you commands or shift mouse click or somthing other than click and dlbclick
------------------
TMacPherson
Customer Suport Software Analyst
[email protected]
-
Jan 25th, 2000, 03:10 AM
#5
You can use a Timer Control to get around the Problem by delaying the Click Response long enough to Check for a 2nd Click, ie.
Code:
Private Sub Picture1_Click()
Timer1.Interval = 200
Timer1.Enabled = True
End Sub
Private Sub Picture1_DblClick()
Timer1.Enabled = False
MsgBox "Double Click Code Goes Here"
End Sub
Private Sub Timer1_Timer()
Timer1.Enabled = False
MsgBox "Click Code Goes Here"
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Jan 25th, 2000, 03:17 AM
#6
Lively Member
Cool peace of code, Aaron!
Roger
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
|