Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to know if last action was a mouse click
Message
From
07/02/2009 22:22:29
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Need to know if last action was a mouse click
Miscellaneous
Thread ID:
01380061
Message ID:
01380061
Views:
74
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
Next
Reply
Map
View

Click here to load this message in the networking platform