Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help! How to implement this?
Message
 
À
31/12/1999 01:03:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00310827
Message ID:
00310841
Vues:
16
Puri,

I'm not sure exactly what behavior you want here. The KeyPress fires when the key is released not when it is pressed. You could use a timer to time out teh form and in the keypress;
IF nKeyCode = 32
   Thisform.Timer.Enabled = NOT Thisform.Timer.Enabled
ENDIF
That would cause the spacebar to toggle the timer on and off. I don't how to tie the timer to the pressed state of a key though. You would probably need to write an FLL to read the keyboard state from teh OS.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform