Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hotkey textbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00400181
Message ID:
00401405
Vues:
21
>So I can use KeyPress to capture the key, right? Well, according to the Help file, "The KeyPress event does not occur for any combination of keys with the ALT key" (which is bizarre, since the second parameter includes a bit indicating whether Alt was pressed). Since I want the thing to work for Alt keys as well as Ctrl and Shift, am I forced to then go to LASTKEY() or some such to handle this?

Zahid,

I tested this and it does work. To test it yourself, just type SET STEP ON in the KeyPress event of a new form, run the form and look at the values of nKeyCode and nShiftAltCtrl in the debugger. That's a strange comment in the help file. One thing you should note is that the menu takes precedence over the form. That is, if you have the standard menu up and the user types Alt+F, the form's KeyPress event won't fire... the File menu will be activated.
Brien R. Givens

Brampwood Systems
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform