Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress/Keypreview in Form level not acting right?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00003207
Message ID:
00003251
Vues:
29
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform