Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Holding down mouse button to repeat command button actio
Message
From
05/05/2005 18:49:34
 
 
To
05/05/2005 17:00:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01010801
Message ID:
01011463
Views:
16
Hi, Malcolm.

>Thanks for jumping in and welcome to this thread! I can't put a NODEFAULT in my Click() events because the Click() event what my MouseDown() event is currently calling when the left mouse button is held down. In other words, when a user holds down the left mouse button, I go into an auto-repeat loop calling whatever code would have normally been handled in the button's Click() event.
>
>I have a short term solution in place, but the need(?) for an auto-repeat capability begs for a subclass of a command button with auto-repeat capabilities for both mouse down and the Spacebar depressed and with options for initial delay before auto-repeat, auto-repeat throttle values (delay between repeats), and a set of acceleration constants that permit a depressed button to accelerate its rate of repeats the longer its held down.

Have you tried building a button class based in other control instead of a regular button, like a shape, for example? As this control doesn't have a click, you should have to implement it the way you want.

Just an idea,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform