4.7.2.3.2 Button
The Button widget will send a value each time it is pressed. The button can either be configured as a normal push button or as a toggle button. The button can have a static text to indicate its functionality.
When it is configured as a toggle button the text will be replaced by ON or OFF depending on the state of the button. To replace the ON/OFF text by something else the Text parameter must be given as '/' delimited text with the first part of the text being the ON state text and the second part the OFF state text. For example, "CLICKED/UNCLICKED."
Data Fields
The Button widget has a source data field. Each time the button is pressed a packet is
sent. The value of the packet will always be:
- 0 for a normal push button
- Either 0 for a toggle button in its OFF state or 1 for a toggle button in its ON state. So if a button in the OFF state is pressed, the value will change to the ON state and vice versa.
Configuration
Hover over parameters in visualizer for more information.
Parameter | Type | Usage |
---|---|---|
Label | Text | Enter label text. |
Mode | Dropdown box | Select Fixed or Toggle. |
Value | Numeric | If Mode is Fixed, Enter the value sent when button pressed. |
Parameter | Type | Usage |
---|---|---|
Foreground | Color selection dialog | Color of widget foreground. |
Background | Color selection dialog | Color of widget background. |
Parameter | Type | Usage |
---|---|---|
Font Size | Numeric | Enter font size |
Font Weight | Dropdown box | Select the font weight (such as bold) |
Font Style | Dropdown box | Select the font style (such as italics) |
Font Family | Dropdown box | Select the font family (such as segment) |
Parameter | Type | Usage |
---|---|---|
Horizontal | Dropdown box | Select the horizontal alignment of content |
Vertical | Dropdown box | Select the vertical alignment of content |
Line Wrap | Dropdown box | Select conditions to wrap line of content |