CANVAS item definition
Defines attributes for a CANVAS drawing area.
Syntax
Important:
This feature is deprecated, its use is discouraged although not prohibited.
CANVAS item-tag: item-name [ , attribute-list ] ;
- item-tag is an identifier that defines the name of the item tag in the layout section.
- item-name identifies the form item, it is mandatory to identify the canvas in programs.
- attribute-list defines the aspect and behavior of the form item.
Form attributes
Style attributes
Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, textColor, textDecoration.
Class-specific: none.
Usage
Define the rendering and behavior of a canvas drawing area item tag, with a CANVAS element in the ATTRIBUTES section.
Important:
The CANVAS feature is deprecated, consider using the built-in fglsvgcanvas
WEBCOMPONENT.
Example
LAYOUT
GRID
{
[cvs1 ]
[ ]
[ ]
...
}
END
END
ATTRIBUTES
CANVAS cvs1: canvas1;
...