Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could not use Function key 10
Message
From
26/08/1999 18:07:09
 
 
To
26/08/1999 07:32:00
Ilie Tomac
Eagle Investment Systems LLC
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00257769
Message ID:
00258182
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform