Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help ESC
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00759032
Message ID:
00759368
Vues:
18
>>>>>>[snip] how to disable the ESC key on a form.
>>>>>>Thanks!!!
>>>>>
>>Yes, in the keypress section I have "ON KEY LABEL F1 do form save"
>>But the F1 reverts back to being 28 if the user hits ESC while in that certain textbox. Then hitting F1 puts a literal '28' in all the textboxes!
>>then there's no way to properly exit the form
>
>I just realized, maybe all the answer you want here is:
>SET ESCAPE OFF
>
>(maybe in the Textbox's GotFocus event, coupled with SET ESCAPE ON or SET ESCAPE &SavedValue in the Textbox's LostFocus event).

It's odd. Escape is set to off. In the txtbox gotfocus, I put "ON ESCAPE do form save" and this had no effect, Hitting ESC still causes cursor to jump to 1st txtbox on the form & literal 28 still shows when F1 key is hit.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform