Re: SVG - Simple Example

2018-08-24 Thread Ed Glassgow via 4D_Tech
That's a marvelous tip Tai! Thank you... Ed On 8/24/18, 10:45 AM, "Tai Bui" wrote: 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

RE: SVG - Simple Example

2018-08-24 Thread Tai Bui via 4D_Tech
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 //

Re: SVG - Simple Example

2018-08-24 Thread Ed Glassgow via 4D_Tech
Very cool... Thank you Keith! Ed On 8/24/18, 10:11 AM, "4D_Tech on behalf of Keith Culotta via 4D_Tech" <4d_tech-boun...@lists.4d.com on behalf of 4d_tech@lists.4d.com> wrote: --- C_TEXT($svg;$ref) C_PICTURE($pict) $svg:=SVG_New // this new svg

Re: SVG - Simple Example

2018-08-24 Thread Keith Culotta via 4D_Tech
A basic approach could be like this: --- 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")