Icons as cursors

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
mtecedor
Posts: 68
Joined: Fri Sep 04, 2009 6:40 pm

Icons as cursors

Post by mtecedor » Tue Oct 06, 2009 5:44 pm

Hi All,

I am trying to customize my cursors. I have followed the directions in Stephen Goldberg example and webpage. I have tried making my own png images and using icons downloaded from the web.

Basically, I want the cursor to become a highlighter when the user clicks on a button.

What happens is that the cursor becomes a white square or a white filled image. Stephen Goldberg talks about this problem in his example.

Any suggestions about how to fix this problem?

Thanks

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

Post by FourthWorld » Tue Oct 06, 2009 6:33 pm

Cursors are a little finicky in Rev. IIRC they must be GIFs, and the first color must be the mask color.

Because most GIF-generating tools use all sorts of different ways of ordering the colors, I often find it easier to not make the mask at all, and just make a 16x16 image and bring it into Rev where I use the paint tool to erase the empty region. A bit more work, but modifying the image in Rev always assures the color order is correct for use as a cursor.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Contact:

Post by trevordevore » Tue Oct 06, 2009 7:16 pm

Try this lesson out. It shows how to make a cursor from a PNG image.

Creating a Custom Cursor
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Tue Oct 06, 2009 7:49 pm

Hi mtecedor,

You can find cursor and info about how to make them at http://economy-x-talk.com/developers.html

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

mtecedor
Posts: 68
Joined: Fri Sep 04, 2009 6:40 pm

Post by mtecedor » Wed Oct 07, 2009 1:40 pm

thanks all for the suggestions. I will see what I can do.

Post Reply