Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement