Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Holding down mouse button to repeat command button action
Message
De
04/05/2005 11:32:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Holding down mouse button to repeat command button action
Divers
Thread ID:
01010801
Message ID:
01010801
Vues:
87
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform