Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the F10 keystroke back from Windows
Message
From
15/02/2001 17:43:01
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00476510
Message ID:
00476512
Views:
22
>I am attempting to have a menu shortcut set to the F10 key. This seems to work well with most F keys - except F10. The F10 keystroke is grabbed by Windows and acts like the ALT key - it selects the left menu item of the active application. (I can do this now within Internet Explorer.) I did not know this was a "reserved" Windows key.
>
>Anyone know of a way to get the keystroke to act as a menu shortcut?
>
>Thanks in advance.

ON KEY LABEL can take control back, we use for a form exit.
ON KEY LABEL F10 DO f10exit

FUNCTION f10exit
*
* miscellaneous checks here
*
IF ...
  KEYBOARD '{ESC}'
ENDIF
The keyboard command will trigger the button that has it's .Cancel property set.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform