addIcon issue
J. Landman Gay
jacque at hyperactivesw.com
Sun Aug 21 13:20:27 EDT 2022
I don't think you can add to the default icon family. The docs say that if
you haven't specified a family then the icon goes into one named "custom".
So see what you get when you run iconFamilies() and if "custom" is in there
then set the family using setCurrentIconFamily("custom").
If you prefer, you can create your own family with its own name with
addIconFamily. In any case you have to set the current family before you
can use its icons.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On August 21, 2022 7:48:13 AM Mike Kerner via use-livecode
<use-livecode at lists.runrev.com> wrote:
> I have an svg widget that draws correctly, so I'm trying to add it to the
> library, but addIcon does not seem to be working.
> After calling addIcon, I try to search for the icon, but it does not appear
> in the icon picker, and adding it by name does not work, either.
> Here's the line:
> get addIcon("test","m 13,21.59 -4.29,-4.3 -1.42,1.42 5,5 a 1,1 0 0 0 1.41,0
> l 13,-13 -1.41,-1.42 z M 25,0 H 7 A 7,7 0 0 0 0,7 v 18 a 7,7 0 0 0 7,7 h 18
> a 7,7 0 0 0 7,-7 V 7 A 7,7 0 0 0 25,0 Z m 5,25 a 5,5 0 0 1 -5,5 H 7 A 5,5 0
> 0 1 2,25 V 7 A 5,5 0 0 1 7,2 h 18 a 5,5 0 0 1 5,5 z",0)
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
> and did a little diving.
> And God said, "This is good."
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list