Page 1 of 1

Can't get changed cursor to show up

Posted: Thu Oct 04, 2012 11:33 pm
by waprothero
I am trying to set the cursor to a magnifier. I have a 32x32 pixel image of a magnifying glass and when put the following script in a button, nothing happens:

on mouseUp
set the cursor to 1020
end mouseUp

I've tried various ways of invoking this, like:
set the cursor to the ID of image "Magnifier"

There is no error thrown, a breakpoint verifies that this command is actually being executed. And, I've tried it with the magnifier cursor image in the image library as well as a 32 pixel color image, which I prefer.

The docs don't say much at all about setting cursors, or complications. So...... what's up?

Re: Can't get changed cursor to show up

Posted: Thu Oct 04, 2012 11:53 pm
by dunbarx
Hi.

Lock the cursor after you set it. I think the standard magnifier is 30847.

Craig Newman

Re: Can't get changed cursor to show up

Posted: Fri Oct 05, 2012 12:00 am
by FourthWorld
It's happening, but then resetting to the default cursor too fast for you to see. This is helpful for temporary cursor states like wait.

To lock the cursor image to remain in place during idle just set the lockCursor global property to true.

Re: Can't get changed cursor to show up

Posted: Fri Oct 05, 2012 12:08 am
by waprothero
Thanks! Fixed. Someplace i saw that, but couldn't find it in the users manual.