4D v13Development tools |
||
|
4D v13
Development tools
Development tools
The 4D SVG component provides a set of tools intended to facilitate the entry of code and to preview the SVG graphics:
The syntax palette lists the 4D SVG component commands grouped by themes: This palette can be used to insert the component commands into the Method editor by simple drag and drop. The command is then pasted in the method with its parameters. The optional parameters are prefixed by an underline. To display the syntax palette, you can either:
The color palette displays the name and a sample of each color specified in the SVG standard, as well as a slider that can be used to vary the rate of opacity: You can use this palette to insert an SVG color reference by drag and drop into the 4D Method editor. The color is inserted as a string that includes the rate of opacity, if any (for example "lavender:30" for the color lavendar with an opacity of 30%). For more information about color references, please refer to the SVG Colors section. To display the color palette, just execute the SVGTool_Display_colors method. 4D SVG provides an SVG viewer that is particularly useful during the development phase:
Note: The "Picture" page has a standard context menu. To display the viewer window, you can either:
4D Pop is a set of components dedicated to developer productivity and grouped into a tool bar that can be integrated into the 4D development environment (see http://www.4d.fr/products/4dpop.html). |
PROPERTIES
Product: 4D |