Can't get changed cursor to show up

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
waprothero
Posts: 38
Joined: Tue Sep 20, 2011 5:01 pm
Contact:

Can't get changed cursor to show up

Post by waprothero » Thu Oct 04, 2012 11:33 pm

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?
Bill Prothero

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10324
Joined: Wed May 06, 2009 2:28 pm

Re: Can't get changed cursor to show up

Post by dunbarx » Thu Oct 04, 2012 11:53 pm

Hi.

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

Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Can't get changed cursor to show up

Post by FourthWorld » Fri Oct 05, 2012 12:00 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

waprothero
Posts: 38
Joined: Tue Sep 20, 2011 5:01 pm
Contact:

Re: Can't get changed cursor to show up

Post by waprothero » Fri Oct 05, 2012 12:08 am

Thanks! Fixed. Someplace i saw that, but couldn't find it in the users manual.
Bill Prothero

Post Reply