On September 3, 2014 7:37:28 AM EDT, Frank Cazabon <frank.caza...@gmail.com> wrote: > On 03/09/2014 12:50 AM, Lew Schwartz wrote: > > Looks good. I guess you can use this in place of click() and > rightclick() > > ... yes? > > > > > > Use it in conjunction with the click or rightclick event. Add a > property to the control like "ilShiftClicked" and use code like this: > > MouseDown: > LPARAMETERS nButton, nShift, nXCoord, nYCoord > > IF m.nShift = 1 > this.ilshiftclicked = .T. > ENDIF > > Click: > IF this.ilshiftclicked > MESSAGEBOX("Shift pressed") > this.ilshiftclicked = .F. > ELSE > MESSAGEBOX("Shift not pressed") > ENDIF
If I remember correctly I ended up having the code in the mouse down event always set it to the current condition. It has to do with if a user shift down mouse, then dragged off the button to cancel the click action before lifting the mouse. -- Tracy _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/874ba07c-7beb-4ef5-a614-a4000c797...@email.android.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.