Page 1 of 1

setting cursor won't work

Posted: Sat Jun 16, 2012 5:41 pm
by fleo
I'm trying to do what I thought was a simple and trivial task: changing the cursor to hand when hovering a button.

The button has the following script:

on mouseEnter
set the lockCursor to true
set the cursor to hand
set the lockCursor to false
end mouseEnter

It doesn't work. The cursor's shape won't change.

revCursors and revMacCursors appear loaded. The "mouseEnter" event is properly fired.

What am I missing?!

Re: setting cursor won't work

Posted: Sat Jun 16, 2012 5:48 pm
by Dixie
Try this in the script of a button...

Code: Select all

on mouseEnter
   set cursor to hand
   lock cursor
end mouseEnter

on mouseLeave
   unlock cursor
end mouseLeave
be well

Dixie

Re: setting cursor won't work

Posted: Tue Jun 19, 2012 1:50 pm
by fleo
splendid!

Thank you! :)