Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating an auto-repeat command button
Message
De
10/01/2002 22:39:23
 
 
À
10/01/2002 15:46:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00603161
Message ID:
00603328
Vues:
17
Malcolm,

To make it repeat, in keypress() method. Credit goes to Gèrald for helping me think of this:
LPARAMETERS nKeyCode, nShiftAltCtrl

if nKeyCode = 32
	nKeyCode = 13
endif
nodefault
dodefault(nKeyCode, nShiftAltCtrl)
>Is there a way to detect the situation where a user is holding down the space key when they're on a command button? What I'm trying to do is create the equivalent of an auto-repeat command button whose Click method gets repeatedly called if the button has been held down for specific interval of time.
>
>Specifically, I would like to detect these situations so I can:
>
>a) Provide a visual alert to the user that they are holding down a button
>
>b) Perform the click event, pause, and if the user is still holding down the button perform another click event and then go into a loop, performing click events (with optional short pauses between click events) until the user releases their space key.
>
< SNIP >
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform