SVG icons in buttons

hakan at exformedia.se hakan at exformedia.se
Wed Feb 27 00:57:46 EST 2019


For me it usually works with “import as control” or “import as referenced...”, but for some “mysterious” reason it never works by setting the filename of the control. I haven’t looked into the IDE code, but I guess it takes care of the calling to drawingSVGcompile() or something....

Håkan
On 27 Feb 2019, 06:26 +0100, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>, wrote:
> On 2/26/19 6:21 PM, Monte Goulding via use-livecode wrote:
> >
> >
> > > On 27 Feb 2019, at 11:14 am, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
> > >
> > > I thought I read that we could use SVG icons in buttons now. How does that work? I thought I'd tried it once before successfully but I can't get it to work right now (LC 9.0.3rc1).
> >
> > Import the SVG using the drawing library `drawingSVGCompile()` and set the text of an image to the returned value. Then use the image ID as an icon in the normal way.
>
> Thanks Monte, that's just too cool. I've gone wild with it. :)
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> _______________________________________________
> 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