It should be okay, it's in the dictionary. It requires the inclusion of the XML extension in a standalone.

--
Jacqueline Landman Gay | [email protected]
HyperActive Software | http://www.hyperactivesw.com
On February 1, 2020 3:15:19 PM Sannyasin Brahmanathaswami via use-livecode <[email protected]> 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" handler

[snip}

case "image"
                if pFileName ends with ".svg" then
                -- SVG files can't be referenced
revIDECreateObject "com.livecode.interface.classic.image", tTargetStack, tCreatedControlLocation
                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?

BR



_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to