Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture Function Key in KeyPress
Message
From
01/10/2001 03:06:19
 
 
To
30/09/2001 14:47:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00562347
Message ID:
00562405
Views:
20
>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?

If you have any menus active that have the function keys defined as hot keys, you won't be able to trap them with the KeyPress event. Ditto for ON KEY LABEL.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform