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 17:00:11
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01010801
Message ID:
01011439
Views:
22
Hi Mike,

>PMFJI if you have no other code in the click event, you can put NODEFAULT there.

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.

Thanks for everyone's help,

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

Click here to load this message in the networking platform