Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress with F1 and F10
Message
 
 
To
14/08/2001 07:02:55
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00543404
Message ID:
00543448
Views:
21
>Hi
>
>How do I make my form.keypress event capture F1 and F10 ?
>
>Form.Keypreview = .T.
>And I'm also having a menu active.

In the VFP Help, the INKEY topic has the code for these Key presses. Since you also have menu considerations, you might consider PUSH KEY in the form activate and clear any of their functionality. Use POP KEY in the form deactivate. In the KeyPress, handle all the function key keypresses yourself.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform