Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to know if last action was a mouse click
Message
De
07/02/2009 22:22:29
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Need to know if last action was a mouse click
Divers
Thread ID:
01380061
Message ID:
01380061
Vues:
75
How can I tell if the last action was a mouse click? LastKey() only seems to work on keyboard strokes. Inkey() has an "M" option, but that is before the click is done, not after. I'm trying to do something in the GotFocus of a container and I need to know if we got there with a mouse click. I thought I could set a property in the container Click event, but GotFocus comes first. Let's just pretend it's an exercise to see if it can be done rather than get into a discussion as to why I'm doing it.

UPDATE: I thought I was on to something with this out of the "1001 Things You Wanted to Know about VFP" but it doesn't work either:
*** a mouse click gives a LASTKEY() value of 13 (just like pressing enter)
IF LASTKEY() = 13
     * Do Something
ENDIF
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform