Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Holding down mouse button to repeat command button action
Message
From
04/05/2005 11:32:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Holding down mouse button to repeat command button action
Miscellaneous
Thread ID:
01010801
Message ID:
01010801
Views:
86
I'm looking for tips on the best way to implement a "repeater" behavior when a user clicks on a command button and holds down the left mouse key. I would like to emulate the "repeat" behavior that occurs when a user presses (and holds down) the Enter key on a command button causing the button's Click method to repeatedly fire.

Specifically, I'm looking for suggestions on:

1. A good value for a delay factor before entering repeat mode. Is there a sysmetric() value I can use or should I use a _dblclick or _incseek instead?

2. A good "delay" value for throttling repeated calls to a control's Click method. Is there a sysmetric() value for this type of behavior usually task specific? The latter seems reasonable to me - curious how others handle this.

3. Is anyone implementing this type of behavior using an acceleration strategy - i.e. where the longer a button is depressed, the smaller the delay between repeated Click requests?

4. Other ideas?

Thanks,
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Next
Reply
Map
View

Click here to load this message in the networking platform