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@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@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 | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode