Hi Richard
Worked a treat when used on a command button.  Many thanks
Paul

-----Original Message-----
From: ProfoxTech <[email protected]> On Behalf Of Richard Kaye
Sent: 11 September 2019 14:34
To: [email protected]
Subject: RE: Detecting mouse click with modifier

Sent by an external sender
------------------------------

Putting this in the MouseUp event of a textbox shows all the values captured:

WAIT WINDOW TRANSFORM(nButton)+[ - ]+TRANSFORM(nShift)+[ - 
]+TRANSFORM(nXCoord)+[ - ]+TRANSFORM(nYCoord)

The only combination that didn't seem to return anything was all 3 modifier 
keys pressed. Hopefully you're not looking to trap CTRL-ALT-SHIFT.

--

rk

-----Original Message-----
From: ProfoxTech <[email protected]> On Behalf Of Richard Kaye
Sent: Wednesday, September 11, 2019 9:30 AM
To: [email protected]
Subject: RE: Detecting mouse click with modifier

Maybe trapping something in the MouseUp event? It seems like it does capture 
that info.

--

rk

-----Original Message-----
From: ProfoxTech <[email protected]> On Behalf Of Paul Newton
Sent: Wednesday, September 11, 2019 9:11 AM
To: [email protected]
Subject: Detecting mouse click with modifier

Hi all

Does anybody know if it is possible to detect whether a modifier key (i.e. 
CTRL, ALT or SHIFT) was down when the mouse was clicked?  I believe it's 
possible in some languages/frameworks but not in VFP.  Would I be correct or is 
there some way of doing this?

Many thanks

Paul Newton


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/by5pr02mb68528ba2765a8400959b5ccaa1...@by5pr02mb6852.namprd02.prod.outlook.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to