Device
This component displays an image of some hardware device and renders some dynamically generated device status messages near or over it. | ![]() |
This is what a device component looks like:

Common Properties
Width, Height, Bindings, Visible, Background, Opaque, Border, Cursor, Tooltip, Focusable, Popup Menu
Custom Properties
Source
Path of context to get data from. In most cases, this path will point to a Device Context.
Property name: source
Property type: String
Image
Device image (both raster and vector images are supported).
Property name: image
Property type: Data Block
Labels
Configuration of dynamic labels indicating current device state.
Properties of a label:
Field | Type | Description | |
Expression | String | Label text expression. This expression will be calculated every Period. Its result will be converted to string and displayed on the label. | |
Label Expression Resolution Environment: | |||
---|---|---|---|
Context specified by the Source property of this device component. If Source is not specified, default context of the currently running widget. | |||
Widget parameters table. | |||
0 | |||
Standard variables only. | |||
Vertical Alignment | Integer | Label vertical alignment. | |
Horizontal Alignment | Integer | Label horizontal alignment. | |
Font | Data Table | Label font. | |
Foreground | Color | Label color. | |
Period | Long | Label text update period, i.e. period of Expression re-evaluation. |
Property name: labels
Property type: Data Table
Status
Numeric value of component status. Status is used to find a proper color for the device image according to the Status Table.
If status is not NULL, device image is colored per the corresponding line in the Status Table.
If status is NULL, device image is left untouched.
Property name: status
Property type: Integer
Status Table
Table containing a color value for every Status used by this device component.
Fields of the Status Table:
Field | Type | Description |
Status | Integer | Value of the Status property. |
Color | Color | Device image color corresponding to the this status. |
Property name: statusTable
Property type: Data Table
Common Events
Hidden, Shown, Moved, Resized, Mouse Clicked, Mouse Pressed, Mouse Released, Mouse Entered, Mouse Exited, Mouse Moved, Mouse Wheel Moved, Key Typed, Key Pressed, Key Released, Focus Gained, Focus Lost
Was this page helpful?