|
-
Jun 11th, 2000, 03:28 PM
#1
Thread Starter
Fanatic Member
I'd like the user to be able to click very quickly on a variey of controls (like labels etc) and catch the mouse up and down events (or click).
BUT, if the user clicks too quickly the double click event fires, skips the mouse down and then processors the mouse up!
so clicking 5 times very quickly on a label produces
DOWN->UP->DOUBLECLICK->UP->DOWN->UP->DOUBLECLICK->UP->DOWN->UP
instead of ....
DOWN->UP->DOWN->UP->DOWN->UP->DOWN->UP->DOWN->UP->
is there a way to kill the double click event?
Cheers?
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
Jun 11th, 2000, 03:56 PM
#2
Fanatic Member
This is what I would have done (Not the best way, I asume but...).
Create a control.
Simple.
Create a control using a label, and use all of it's events and properties and methods, but exclude DblClick()
r0ach™
Don't forget to rate the post
-
Jun 11th, 2000, 04:08 PM
#3
Hyperactive Member
-
Jun 11th, 2000, 05:37 PM
#4
Thread Starter
Fanatic Member
Re: Don't know if this would work....
I think I'll go with the user control... It's basicall what I'd end having to to anyway
I need a screen refresh after the down events before the up events and I agree 101% about right-royaling the system with the mouse timer change. After searching the web I kept finding that tip but nothing else. I've heard of subclassing when you what to handle extra evnts but when you want handle less... ?
Where Sam Finch? he's the local subclassing genuis!
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
Jun 11th, 2000, 05:43 PM
#5
Hyperactive Member
-
Jun 11th, 2000, 05:49 PM
#6
Thread Starter
Fanatic Member
Re: Isn't that the solution then....?
I hate to admit it but I'm a subclassing Virgin!, I've never had to do it before.
I was testing an idea for a user control on an exe anyway so I suppose the answer was sitting in front of me the whole time...
Thanks guys
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
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
|