ELEMENT_TYPE_LABEL

The tables below describe the ELEMENT_TYPE_LABEL specific parameters and additional fields for the MSG_CONF_DASHBOARD_ELEMENT message.

Table 5-53. ELEMENT_TYPE_LABEL Parameters
ParameterValue
ELEMENT_TYPE0x00
Total data length of MSG_CONF_DASHBOARD_ELEMENT when using ELEMENT_TYPE_LABEL26 + length of default text (N)
Table 5-54. Additional Data Fields to MSG_CONF_DASHBOARD_ELEMENT
FieldSizeValuesDescription
Font size1 byte1-255
Attribute1 byte
  • Bit 0: Bold ON/OFF
  • Bit 1: Italic ON/OFF
Horizontal alignment1 byte
  • 0 = Left
  • 1 = Center
  • 2 = Right
Vertical alignment1 byte
  • 0 = Top
  • 1 = Center
  • 2 = Bottom
Background transparency1 byte0 - 255
Background color3 bytes0xRRGGBBRGB color of background
Foreground transparency1 byte0 - 255
Foreground color3 bytes0xRRGGBBRGB color of background
Label textN bytesNull-terminated string max. 100 bytes

Example

The picture below shows an example of two labels with the corresponding parameters given in the tables below the picture.

: The appearance of elements will vary with operating system version and configuration.
Table 5-55. Label1
FieldValue
Z-index0
X-coordinate30
Y-coordinate30
Width200
Height100
Element type0x00
Font size16
Attribute0x01
Horizontal alignment0
Vertical alignment0
Background transparency255
Background color0x64FF64
Foreground transparency255
Foreground color0x000000
Label text“Label1\0”
Table 5-56. Label2
FieldValue
Z-index1
X-coordinate90
Y-coordinate70
Width75
Height25
Element type0x00
Font size12
Attribute0x00
Horizontal alignment1
Vertical alignment1
Background transparency100
Background color0x646464
Foreground transparency255
Foreground color0x7C0000
Label text“Label2\0”