Cursor Icon for svg buttons

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 229
Joined: Tue Apr 10, 2012 9:18 am

Cursor Icon for svg buttons

Post by ghettocottage » Tue Jan 31, 2017 7:32 pm

I have an app that I just tested on Mac OS X. Everything seems to work fine, but I have some svg-icons I am using for buttons. When I hover over the buttons, I am getting this little watch-icon. It looks like this:

Image

Can I tell Livecode to now have any little icons show up?

Klaus
Posts: 9619
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Cursor Icon for svg buttons

Post by Klaus » Tue Jan 31, 2017 7:43 pm

Hi ghettocottage,
ghettocottage wrote:... but I have some svg-icons I am using for buttons..
sorry, don't get it? :shock:
Are you looking for a CURSOR or an ICON?

If the latter:
Did you assign the ID of a SVG widget to a buttons icon property?
(Enter the ID in the ICON filed of the button in the inspector?)
If yes, this is not (yet) supported unfortunately!
ghettocottage wrote:When I hover over the buttons, I am getting this little watch-icon. It looks like this:
Image
This is the official Livecode "wait" cursor and the engine is probably considering to either crash or throw an error, I presume! :D
ghettocottage wrote:Can I tell Livecode to now have any little icons show up?
Not sure what you mean with this?


Best

Klaus

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 229
Joined: Tue Apr 10, 2012 9:18 am

Re: Cursor Icon for svg buttons

Post by ghettocottage » Tue Jan 31, 2017 10:30 pm

Hi Klaus,

I found it.
I had an SVG icon I was using as a button.
I had a script on that button where "on mouse enter" it would "set cursor to hand"
that was working fine, but I tested on a Mac for the first time and it was not giving me a hand, but a watch icon (like the one I posted)
I changed the script to "set cursor to arrow" and that works fine. I can live with the arrow.

I had forgot that I had that in the script, and could not remember where to change that....just had to dig around in my code.

Thanks!

Klaus
Posts: 9619
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Cursor Icon for svg buttons

Post by Klaus » Tue Jan 31, 2017 10:36 pm

AHA! Okie Dokie! :D

Post Reply

Return to “Mac OS”