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 profoxtech-bounces@leafe.com On Behalf Of Richard Kaye Sent: Wednesday, September 11, 2019 9:30 AM To: profoxtech@leafe.com 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 profoxtech-bounces@leafe.com On Behalf Of Paul Newton Sent: Wednesday, September 11, 2019 9:11 AM To: profoxtech@leafe.com 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]