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: FourthWorld, heatherlaine, Klaus, 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 » Thu Feb 22, 2007 5:21 am

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 » Thu Feb 22, 2007 2:00 pm

try

Code: Select all

on mouseEnter
  lock cursor
  set the cursor to hand
end mouseEnter
BIX

Klaus
Posts: 14191
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Thu Feb 22, 2007 7:32 pm

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 » Tue Feb 27, 2007 6:16 am

your advice did the trick
Regards,
Supergrass

Post Reply