change cursor icon when hovering over object

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
supergrass
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 7
Joined: Thu Jan 11, 2007 2:02 am

change cursor icon when hovering over object

Post by supergrass »

I am doing a mockup of a web site. I have used cards to show the layouts/ gui of different pages.

I am trying to simulate typical browser behaviour of the cursor and hyperlinks when the mouse is hovering over them eg change the cursor to a hand and change the button/ link colour.

I have looked thru the documentation and so far turned up nothing.

Any ideas?
Regards,
Supergrass
BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Post by BIX »

try

Code: Select all

on mouseEnter
  lock cursor
  set the cursor to hand
end mouseEnter
BIX
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus »

and don't forget:

on mouseleave
lock cursor
set the cursor to arrow
end mouseleave

:-)
supergrass
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 7
Joined: Thu Jan 11, 2007 2:02 am

thanks guys

Post by supergrass »

your advice did the trick
Regards,
Supergrass
Post Reply