Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress event madness...
Message
De
07/10/2003 18:06:48
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
À
07/10/2003 16:57:57
Eric Sedlacek
TTSS Interactive Products
Rockville, Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00835939
Message ID:
00835983
Vues:
9
>I'm not really sure how to do that accurately. KEYBOARD adds to the existing keyboard buffer which may already have additional characters ahead of it. Problematic.

I have yet to encounter a "real" situation where there is more than one character in the keyboard buffer (short of a user "leaning" on the keyboard).

I'd go with:
DO CASE
CASE THISFORM.lTranslating
   THISFORM.lTranslating = .F
CASE nKeyCode = 97
   THISFORM.lTranslating = .T.
   NODEFAULT
   KEYBOARD CHR( 98 ) CLEAR
etc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform