Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture Function Key in KeyPress
Message
 
À
30/09/2001 14:47:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00562347
Message ID:
00562352
Vues:
14
If the function key is be trapped through the forms KEY PRESS and someother control (or form) has focus, the function key capture might not be available.

Have you tried an ON KEY LABEL declaration in the main program above the "DO FORM" that calls the form you're working with?

If you have a form with two controls, each having a key press event, then the control that has focus (it seems) would be the one pushing the event!

>I'm trying to caption the F10 while processing a form. The KeyPress event for the form is testing for nKeyCode = -9, I also have the KeyPreview set to True. In testing I've tried displaying the nKeyCode value on the screen, and all key values are displayed, except for function keys. Sometimes they are "captured" with the KeyPress event, but most of the time they are not.
>
>I've tried PUSH KEY CLEAR to make sure there are no assignments to the function keys.
>
>What needs to be done to capture function keys?
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform