Hi,

A command that I find very useful is the SVGTool_SHOW_IN_VIEWER command.
You pass the SVG document to it and it will display it in a new window which 
also allows you to toggle to it's XML source.

Piggybacking off the earlier example:

C_TEXT($svg;$ref)
C_PICTURE($pict)

$svg:=SVG_New   // this new svg document is referred to as "$svg"
$ref:=SVG_New_rect ($svg;10;10;100;100)  // refer to this new rectangle in 
"$svg" as "$ref"
SVG_SET_FILL_BRUSH ($ref;"red")
SVGTool_SHOW_IN_VIEWER ($svg) //Will open a Viewer window for "$svg"

I find that this helps with seeing the structure of the SVG and how 4D builds 
it.
You can even modify the XML and see the effects immediately.

Hopefully this is helpful.

Best Regards,
-Tai B.



**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to