Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with GotFocus and LostFocus !
Message
De
30/07/1998 14:41:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00122769
Message ID:
00122798
Vues:
17
>Hi everybody !
>
>I alredy asked this question a couples of day ago in frecnh but I think my question was misunderstood and I think most of peoples here are talking english !!
>
>When I'm in a TEXTBOX control, I would like to know in the valid event the name of the ontrol who wants the focus... My valid event forces the user to enter a valid string and doesn't allow the user to click cancel !!! So in the valid event, I would like to know if the use clicked on the cancel button before testing the value of the string in my TEXTBOX...
>
>I hope my english is good enough for everybody !
>
>Tanks
>
>Benoit Grenier

You can set the "Cancel" property of your Cancel button to .T., then in the valid event of your textbox you can say:
IF LASTKEY() = 27   && Escape key pressed
    RETURN
ENDIF
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform