The Switch/Lamp object reflects the state of a tag and allows the user to alter that tag’s value by interacting with the object. To create a Switch/Lamp, click ‘Insert’ - ‘Switch/Lamp’ Insert > Switch/Lamp then click and drag on an open section of the page to place the object. Once the object has been placed, the user can configure the object using the ' Property Editor.'
...
Lamp Properties
In the ‘Property Property Editor, ' the user can alter the lamp properties of the object by expanding the ‘Lamp Properties’ Lamp Properties tab. These properties allow the user to change the visual state of the object depending on the value of a bound tag. By default, a Switch/Lamp object has two states: State 0 and State 1. The user can add additional states if necessary by pressing ‘Add State’ Add State at the bottom of the ‘Lamp Properties’ Lamp Properties tab.
Property | Description |
---|---|
Image | Allows the user to select the image to be displayed for the current state. Users can upload .png, .jpg, .svg, .bmp, .jpeg, .gif files or select from a library of pre-loaded images. |
Text | Allows the user to enter text to display for the current state. |
Font Name | Allows the user to change the font used for the above text. |
Font Size | Allows the user to change the font size used for the above text. |
Italic | Allows the user to italicize the state’s text. |
Underline | Allows the user to underline the state’s text. |
Bold | Allows the user to bold the state’s text. |
Text Color | Allows the user to change the text color used for the above text. |
Vertical Alignment | Allows the user to change the vertical alignment used for the above text. |
Horizontal Alignment | Allows the user to change the horizontal alignment used for the above text. |
Switch Properties
There is not a separate tab in the ‘Property Editor’ Property Editor that can be used to configure the switch properties of the object. Instead, these properties can be configured using the ‘Actions’ Actions tab. Under the ‘On Press’ On Press tab, the user can assign a script or action command to execute when the user presses the object. For example, the below action command toggles a Boolean tag’s value when the Switch/Lamp is pressed.
...