Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining button pressed from textbox LostFocus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00236947
Message ID:
00237045
Vues:
20
Mike,

An alternative appraoch that isnnot name dependent and will probably make your users happy, is to set the cancel button's Cancel property to .T. making it the Escape button. This causes the Escape key to fire the Cancel button's Click and a click on teh Cancel button will cause LastKey() to return 27 indicating the Escape key.

Now in your LostFocus you simply;
IF LastKey() = 27
   * Cacnel
   RETURN .T.
ENDIF
* Other processing here
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform