Tech Tip: How to display SVG pictures on the fly
PRODUCT: 4D | VERSION: 11.3 | PLATFORM: Mac & Win
Published On: April 9, 2009
During the creation of an SVG picture, it is very important for developers to be able to take a quick look at the image for verification.
One approach is to save the contents to a picture variable or export it to an external file. Then the picture can be displayed either by running the form that contains this picture variable or by opening the external file with an application capable of displaying SVG files.
This can be very cumbersome during the development process. However, 4D SVG provides an SVG viewer. This tool can be invoked by making a call to SVGTool_SHOW_IN_VIEWER command. In this way, 4D developers can control how the picture is coming without running a form or using an SVG tool provided from other vendors.
Commented by Atanas Atanassov on April 14, 2009 at 4:46 PM
When 4D SVG and 4D Pop are used together, the SVG Viewer can be invoked from the 4D Pop menu bar by clicking on the small black triangle next to the 4D SVG icon and choosing the "SVG viewer..." option.