Creates the
PmgCanvas object configured as meter Half-circle.
This preconfiguration can be activated when
creating a new Pmg object.
This preconfiguration is included in the
"/ Meter" group.
This object contains embedded
PmgCanvas object named "
Dynamic". It controls the movement of the device pointer by using the variable named "
val". It is possible to connect it to the measured value by
data binding.
In the parent
PmgCanvas object there are
variables title as meter name,
min and
max that specify the value range of the meter. The values
technolMin and
technolMax differentiate the technological limits by color. The
arcScale value defines the angle section where the scale is rendered. Additional configuaration variables are located in the
context itself, in the section beginning with the
USER VALUES comment.
Additional configuration variables are located at the beginning of
context itself, or at the beginning of designer method. The following items can be set:
- sUnit - measuring unit
- fontSize - description text size
- majTicks - number of main ticks of the scale
- minTicks - number of minor ticks between main ticks
- nDescPer - specifies the quantity of main segment descriptors (0 = no, 1 = each main, 2 = each second)
- bgColor1 and bgColor2 - the values define the background colors of the meter
- borderWidth - width of the meter border
These configurators can be set before the preconfiguration is created:
The name of created object | Name (identifier) of the Pmg object. It is used for obtaining 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 characters), empty string, spaces and first character must not be a number. |
Unit of the measured value | Unit of the measured value (kPa, MPa, ot/min, dB, ...) |
Measured value | Connection to measured value |
Range from minimum | Start of the meter range |
Range to maximum | End of the meter range |
Show technological limits | Displays technological limits in colors |
Technological minimum | Minimum in technological range |
Technological maximum | Maximum in technological range |
Main ticks ticks (number) | The number of main ticks of the scale |
Minor ticks of the scale (number) | The number of minor ticks between two main segments |
Description of scale values (1=each main tick) | Description of scale values (1=each main tick, 2=each second main tick) |
Values description font size | Values description font size
auto (default)
8
9
10
11
12
14
16
18
20
22
24
26
28
36
48 |
---|