Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I tell what button was clicked in an event?
Message
 
 
À
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:
00269145
Vues:
22
Mike,

SYS(1270) is only semi-reliable under any circumstances. Even if the user had used the mouse to click the button the mouse can have moved off of the object between the time the event occurred and when the sys(1270) object is checked. If you really have to what control was clicked you'd have to have code that tracked 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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform