Cursors

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Icy Tiger
Posts: 2
Joined: Sat Jan 05, 2008 12:45 pm
Contact:

Cursors

Post by Icy Tiger » Thu Jan 10, 2008 5:42 pm

I don't know where I should post this, but I figured this is talking Revolution shortly beyond the basics.

I have tried using the

Code: Select all

set the cursor to image id
code, but it either changes my cursor to a glitchy blob, or does nothing.

Am I doing anything wrong? Thanks in advance ^^
[quote="Bender"]If you ask me, everybody's a jerk. You, me, that jerk. That's my philosophy.[/quote]

Visit my site! Includes 3 simple Revolution-made games, weekly quiz and chats: [url="http://www.icy-tiger.co.uk/"]Icy-Tiger.co.uk[/url]

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Thu Jan 10, 2008 7:47 pm

you need to specify an id of an existing image. So the code needs to be like this:

Code: Select all

set the cursor to image 1053
Unlike in other control specifications, you shall not specify id, so not like this: "set the cursor to image id 1035"

Beware though, the image needs to be very special. For Mac OS it's 16x16, for Windows and Linux it could also be 32x32. It might only contain black, transparency and white, and you need to have edited the image with one of the build in image tools (ideal is to click it twice with the pencil tool). Even after all these precautions, your image might be incompatible somehow.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Icy Tiger
Posts: 2
Joined: Sat Jan 05, 2008 12:45 pm
Contact:

Post by Icy Tiger » Fri Jan 11, 2008 6:02 pm

That scripting makes sense! I have always done

Code: Select all

set the cursor to 1053
, instead of

Code: Select all

image 1053
. That might make all the difference... And I will be careful about all the properties of the image, to make it the right size. Thanks ^^
[quote="Bender"]If you ask me, everybody's a jerk. You, me, that jerk. That's my philosophy.[/quote]

Visit my site! Includes 3 simple Revolution-made games, weekly quiz and chats: [url="http://www.icy-tiger.co.uk/"]Icy-Tiger.co.uk[/url]

Post Reply