Page 1 of 1

Cursor Icon for svg buttons

Posted: Tue Jan 31, 2017 7:32 pm
by ghettocottage
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?

Re: Cursor Icon for svg buttons

Posted: Tue Jan 31, 2017 7:43 pm
by Klaus
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

Re: Cursor Icon for svg buttons

Posted: Tue Jan 31, 2017 10:30 pm
by ghettocottage
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!

Re: Cursor Icon for svg buttons

Posted: Tue Jan 31, 2017 10:36 pm
by Klaus
AHA! Okie Dokie! :D