Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Click event blocks my DblClick event
Message
From
12/05/2006 12:30:33
 
 
To
12/05/2006 10:59:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01121340
Message ID:
01121385
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
This is usual problem.
When user presses and releases mouse button the system fires click event. It does not wait for second click and thus click event always fired before doubleclick.

All you can do is to wait some time after click event (using timer object). And if there are no doubleclick event after timeout then your control can react to a single click.
For example click mixer icon in system tray - you'll see it shows slider after some delay.

More easily, you can program doubleclick handler to undo results of click event.
For example if Form1 must be shown on single click and Form2 must be shown on doubleclick then you just need to hide or release Form1 and show Form2 in doubleclick handler.

Hope this helps.

>I have an image with click and dblclick events. When I double click on my image, my click event gets called first.
>
>I've bumped by _dblclick setting up to 1.0 (from 0.32) in an attempt to get DblClick to fire.
>
>I suspect I'm missing the obvious ... to the point of almost being embarrassed to even post this question :)
>
>Malcolm
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform