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
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

Reply via email to