Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Holding down mouse button to repeat command button actio
Message
 
 
To
04/05/2005 11:32:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01010801
Message ID:
01010805
Views:
21
What kind of action you want to repeat this way? Maybe you should use some other control in such case?

>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform