Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALT+Key Not Captured By KeyPress?
Message
From
24/05/2001 14:24:25
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00511073
Message ID:
00511100
Views:
19
>I've got KeyPreview=.T. on a standard form. In Keypress, I'm "watching" for certain keystrokes (function keys mainly). I need to use ALT+F5 to trigger a function, but it appears they Keypress event doesn't capture the ALT key. Is there a way around this?

Scott,

In KeyPress you should develop logic to evaluate nKeyCode and nShiftAltCtrl. In your case trap for nShiftAltCtrl = 108 (numeric). If this isn't the problem, then I would check to see if there is an On Key set somewhere using the the key combination.

Regards, Renoir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform