That's a marvelous tip Tai!  Thank you...

Ed

On 8/24/18, 10:45 AM, "Tai Bui" <[email protected]> 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 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.
    
    
    Tai Bui
    Technical Services Engineer
    
    4D Inc
    95 S. Market Street, Suite #240
    CA 95113 San Jose
    United States
    
    Téléphone : +1-408-557-4600
    Standard :  +1-408-557-4600
    Fax :       +1-408-271-5080
    Email :     [email protected]
    Web :       www.4d.com
    
    
    
    
    
    
    


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