Creates the PmgCanvas
object configured as a table of daily values of the month with graphic representation.
This preconfiguration can be activated when creating a new Pmg object
and is included in the group: " / Table"
This object contains embedded PmgCanvas
object named "Dynamic
". The content is filled in by the variable
". The value of this variable is entered in designer's method GetData
of this object. (The data in this method is emulated for testing purposes.)
In the parent PmgCanvas
object there are variables
- Titles - table column names (names separated by semicolon)
- ColsWidth - widths of columns (widths separated by semicolon)
- GraphColors - colors of graphic representation of values of each column (colors separated by semicolon)
- RowsHeight - row height (common value for all rows)
- Rows - total number of rows (including the header)
Additional configuration variables are located at the beginning of context
itself, or at the beginning of designer's method. The following items can be set: Additional configuration variables of the parent Pmg
object are located at the beginning of the context
- nBorder - the width of table grid
- sTabBgColor - background color of table data area
- sTabBorderColor - table grid color
- sTabTitleColor - text color of column header
- sTabTitleBgColor - background color of column header
The first column is configured as static with each row representing day of the month. The recommended number of columns with values (except the 1st column) is 1 - 3. The number of columns in the table is defined by the Titles
variable. (Higher number of columns makes the graphic representation too complex.)
These configurators can be set before the preconfiguration is created:
| Object name||Name (identifier) of the Pmg object. It is used to obtain the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.
|Table column names (separated by semicolon ;)|| (Day;Water;Gas;Graph;) The first column (day of the month) and last column (graphic representation of values) are static. All columns between the name of the forst and last column are dynamic columns. Value of this configurator will be transmitted into the Titles variable.|
|Table column width (separated by semicolon ;)|| (40;100;100;*;) The * character represents the rest of the width of the Pmg object and is reserved for graphic representation of values. The number must be identical with the number of values defined in previous configurator.|
|Maximum possible data value||The maximum possible value to be displayed in the table is defined in the valMax variable. This will represent 100% for the graphic representation of the table values.|