Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress/Keypreview in Form level not acting right?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00003207
Message ID:
00003251
Views:
23
>Put 'NODEFAULT' in your KeyPreview() code. Is
>suppresses VFP from going up the ladder & doing
>it's thing like going to the next field.
>
>Tom

I think you mean KeyPress() <g> ... but I did that and it didn't make a difference. The NODEFAULT simply stops the CURRENT control from it's actions (if I'm inside a grid or another textbox, it won't go to the next one in the tab order). It doesn't do anything to stop the ESC key from doing something or the F2 key?? If you have a moment, you should try it. I think the ESC key operates outside the normal bounds of the KeyPress logic at the form level. MS KN Library has an article on it as a bug where the TAB key is also detected at the form level when the keypreview is .F.

Jim.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform