Button
The Button graphic element is an undefined standard button. Button appears under
Common Controls
in the Toolbox
.Use a button to perform a task on the screen. The button should display explanatory text regarding the task the button performs. Configure events for the button in order for it to perform tasks on the HMI device:
- Set a tag to 0 or 1.
- Toggle a value.
- Write a value.
- Increment a value.
- Use the button as an HMI Button Control (HMIBC).
- Log on or log off the HMI device.
- Open or close a popup.
- Open a screen.
- Navigate forward or backward a screen in navigation history.
- Open the Navigation menu.
Built-in animation properties
Built-in animation properties appear under the
General
category of the Properties
window. Specify values for these properties in order to animate the graphic element or change the information the graphic element shows on the HMI device. Name | Category | Purpose | Accepted values |
Text | General | Specifies the text on the graphic element. Do not place text against the border of a graphic element. Allow for a small difference in space, such as one or two characters. If you place text against the border of a graphic element, the text may wrap differently or appear clipped on the HMI device. | Alpha-numeric characters |
Unique properties are properties that not all graphic elements in the
Toolbox
share.Name | Category | Purpose | Accepted values |
CornerRadius | Appearance | Specifies the curve of the corners. | 0 or a positive number |
TextAlignment | Appearance | Specifies the vertical and horizontal alignment of the text. | Vertical alignment:
Horizontal alignment:
|
Color | Appearance/Border | Specifies the color of the border. | Any selected color in the Color Picker or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow. |
Style | Appearance/Border | Specifies the style of the border line. |
|
Width | Appearance/Border | Specifies the width of the border line. |
|
FontName | Appearance | Specifies the font of the text. | Any selected font |
FontColor | Appearance | Specifies the color of the text. | Any selected color in the Color Picker or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow. |
FontSize | Appearance | Specifies the size of the text. | Positive numbers |
Bold | Appearance | Makes the text or value on the graphic element bold. |
|
FillColor | Appearance | Specifies the fill color. | Any selected color in the Color Picker or a Hex color value entered manually. The Hex value must be in the format #RRGGBB. R, G, and B are Hex digits from 0 through F and represent the color channel values for red, green, and blue. For example, #ffff00 produces yellow. |
UsePredefinedDisabled | Appearance | Specifies if a crosshatch overlay shows on the control element when you disable the element. |
|
Common properties exist for all graphic elements.
Property | Category | Purpose | Accepted Values |
Access | Security | Specifies if all users have access to the control element, or if access is inherited from the screen. |
|
Angle | Position and Size | Specifies the rotation angle. Enter 180 to display the graphic element upside down. If you enter a value larger than 360, the portion of numeric value that is over 360 becomes the value. For example, enter 380 to see a value of 20. If you enter a value less than 0, the negative value is subtracted from 360. For example, enter -30 to see a value of 330. |
|
Enabled | Appearance | Specifies if the graphic element is available on the HMI device and if the graphic element accepts touch and key input. |
|
Height | Position and Size | Specifies the height in pixels. | Any positive numeric value |
Opacity | Appearance | Specifies the transparency of the graphic element. | 0 (fully transparent) - 100 (fully opaque) |
Visible | Appearance | Specifies if the graphic element is visible on the HMI device. |
|
Width | Position and Size | Specifies the width in pixels. | Any positive number |
X | Position and Size | Specifies the horizontal coordinate, in pixels, from the upper left corner of screen to the upper left corner of a graphic element or group with no rotation. If the graphic element or group is rotated, the X property value does not change. | Any positive number |
Y | Position and Size | Specifies the vertical coordinate, in pixels, from the upper left corner of screen to the upper left corner of a graphic element or group with no rotation. If the graphic element or group is rotated, the Y property value does not change. | Any positive number |
Provide Feedback