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?
Can't get changed cursor to show up
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 38
- Joined: Tue Sep 20, 2011 5:01 pm
- Contact:
Can't get changed cursor to show up
Bill Prothero
Re: Can't get changed cursor to show up
Hi.
Lock the cursor after you set it. I think the standard magnifier is 30847.
Craig Newman
Lock the cursor after you set it. I think the standard magnifier is 30847.
Craig Newman
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Can't get changed cursor to show up
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.
To lock the cursor image to remain in place during idle just set the lockCursor global property to true.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 38
- Joined: Tue Sep 20, 2011 5:01 pm
- Contact:
Re: Can't get changed cursor to show up
Thanks! Fixed. Someplace i saw that, but couldn't find it in the users manual.
Bill Prothero