Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could not use Function key 10
Message
De
26/08/1999 18:07:09
 
 
À
26/08/1999 07:32:00
Ilie Tomac
Eagle Investment Systems LLC
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00257769
Message ID:
00258182
Vues:
18
>Hi, Wing...
>
>By default, the F10 key pressing activates VFP System menu.
>You can solve you problem by the following:
>Put on form's Init() event code:
> ON KEY LABEL F10 DO your_procedure.
>"your_procedure" can be either procedure or a method of
>the form:
> ON KEY LABEL F10 DO your_form_name.your_method() (where
>your_form_name is the name of the SCX file, not the form's
>name property).
>
>As for F11 and F12, you also can use above-mentioned approach.
>But, form's KeyPress() event on my computer
>reacts on their pressing. May be these keys have some assigment
>made by the operating system of your computer.

Ilie's suggestion will work fine. I put my OKL in the app initialization and use it to save the form. It calls a method: goApp.DoSave which checks the current form to make sure it has a save method and executes it if it does.

F11 and F12 can be handled by the keypreview. As I remember the key codes for F11 and F12 are quite different from those for F1 through F9.

Gotcha: many of the key codes are ambiguous. You have to check the shift code also to make sure.

Peter Robinson
Peter Robinson ** Rodes Design ** Virginia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform