Page 1 of 1

set the hilite of a button when the user press the shiftKey

Posted: Thu Mar 28, 2013 11:22 am
by jmburnod
Hi All,

I search an way to set the hilite of a button when the user press the shiftKey on the keyboard.
I want avoid a pending message and I only found a dirty way by the mousemove :oops:

Code: Select all

on mousemove
   set the hilite of btn "bMultipleSelection" to (shiftKey() is down)
end mousemove
Best regards
Jean-Marc

Re: set the hilite of a button when the user press the shift

Posted: Thu Mar 28, 2013 1:44 pm
by dunbarx
Jean-Marc.

It had to be the one key that sends no message, the shiftKey???

Are you adverse to using "idle"?

Craig

Re: set the hilite of a button when the user press the shift

Posted: Thu Mar 28, 2013 2:54 pm
by jmburnod
hi Craig,
Are you adverse to using "idle"?
If i can't do the same without it but it seems a loop is the only way
Best regards
Jean-Marc