Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I tell what button was clicked in an event?
Message
De
26/09/1999 16:55:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00269019
Message ID:
00269143
Vues:
24
Hi David,

>Two problems with that code. It won't work if the user hits the Escape key. And it may accidently trigger if the user even just has the mouse sitting over the top of the cancel control without clicking it.

Yeah, But the last key would only work in the Cancel example (yeah, I know thats what he wanted). To be completely true as far as: "How can I tell what button was clicked in an event?" You would have to check either the sys(1270) or the lasykey detecting Alt combintation, or simply the activecontrol, but in ,say the Valid, the ActiveControl hasn't been updated yet, right?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform