Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Holding down mouse button to repeat command button actio
Message
 
 
À
05/05/2005 17:00:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01010801
Message ID:
01011463
Vues:
17
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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform