Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to catch F1 and F10
Message
De
18/11/2003 08:18:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00850915
Message ID:
00850943
Vues:
17
Hi Chris

I remember being told some time ago that it was bad practise to overrule the windows Function key settings (by Christof Lange I think). Especially if you application is supposed to be Windows compliant.

Heres a list of what they are http://www.techtv.com/callforhelp/answerstips/windowstips/story/0,24330,2600873,00.html

Nick Mason

>Hi All - I have set KeyPreview true on my form and I have this code in the KeyPress event...
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>IF INLIST(nKeyCode, 28, -1, -2, -3, -4, -5, -6, -7, -8, -9, 133, 134) THEN
>MESSAGEBOX("F KEY PRESSED")
>ENDIF
>
>
>but this does not catch F1 or F10
>
>I am aware that F1 is reserved for HELP etc and F10 seems to set focus to my menu.
>
>How do I capture F1 and F10?
>
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform