Import SVG as Images
J. Landman Gay
jacque at hyperactivesw.com
Sat Feb 1 17:49:52 EST 2020
It should be okay, it's in the dictionary. It requires the inclusion of the
XML extension in a standalone.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 1, 2020 3:15:19 PM Sannyasin Brahmanathaswami via use-livecode
<use-livecode at lists.runrev.com> wrote:
> I want to import SVG as a tool in a stack meant for deployment.
> digging into REV IDE stacks | RevMenuBar, we find the "revIDEImportControl"
> case "image"
> if pFileName ends with ".svg" then
> -- SVG files can't be referenced
> revIDECreateObject "com.livecode.interface.classic.image", tTargetStack,
> put the long id of the last control into tCreatedControlID
> set the text of tCreatedControlID to drawingSvgCompileFile(pFileName)
> so I made a button with:
> on mouseup
> answer file "Find an SVG"
> put it into pFileName
> create image
> put it into tImageID
> set the text of tImageID to drawingSvgCompileFile(pFileName)
> end mouseup
> it works! Are there any caveats to calling REV IDE handlers we create a
> standalone app?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode