Preconfiguration "Arrow of current value above the bar with graphic representation of value limits (PmgCanvas)"
This preconfiguration can be activated when creating a new Pmg object
and is included in the group: "/ Bar (PmgBar)"
The created compound object contains two PmgCanvas
subobjects. The outer Pmg
object renders the scale and uses variables max
. Variables min
reprezent scale range. Variables barX
represent the distance between the left upper corner of the bar and the left upper corner of the object. Variable colors
defines the color range of values (limits).
Additional parameters of scale rendering can be modified at the beginning of the "DrawScale"
The inner Dynamic
object has the variable val
. This variable controls the movement of the arrow along the scale. It can be binded to the measured value by data binding
Examples of limits and colors settings In the colors
Whole bar in a single color
(minimum - 20) = red, (20 - maximum) = gray
(minimum - 20) = red, (20 - 30) = yellow, (30 - 70) = gray, (70 - 80) = yellow, (80 - maximum) = red
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 (i.e. national dependent chars), empty string, spaces and the first character must not be a number.
|Measured value||Connection to measured value|
|Range from minimum||Start of range|
|Range to maximum||End of range|
|Color representation of value range|