Table of Contents
The ButtonGroup node class manages the layout, visual attributes, and focus management of a vertical list of Button nodes. When the ButtonGroup node has focus, it sets the key focus on a single one of its child Button nodes.
- The buttons can be easily created using default button appearances by setting the buttons field to an array of strings containing the labels for each button.
- A single observer can watch for any of the Button nodes in the group to be selected by observing the
- By default, Button nodes added to the group will have the default button appearance. Several fields exist that allow you to change an attribute of the appearance of all Button nodes in the group.
Specifies the button label color for all unfocused Button nodes in the group. Only set to override the system default.
|focusedTextColor||color||0xffffffff||Specifies the button label color for the Button node that has focus, if any. Only set to override the system default.|
Specifies the Font node for all unfocused Button nodes in the group. Only set to override the system default.
|Specifies the Font node for the Button node that has focus, if any. Only set to override the system default.|
Note: See Font for a list of all system fonts available.
|focusBitmapUri||uri||""||Specifies the bitmap to be used as the background for the Button node that has focus. Only set to override the system default.|
|focusFootprintBitmapUri||uri||""||Specifies the bitmap to be used as the focus footprint background, when focus is not on the ButtonGroup node. The focus footprint is a visual indicator of the button that will take focus when focus moves back onto the ButtonGroup node. Only set to override the system default.|
|iconUri||uri||""||Specifies the bitmap for the button icon for all unfocused Button nodes in the group. Only set to override the system default.|
|focusedIconUri||uri||""||Specifies the bitmap for the focused button icon. Only set to override the system default.|
|minWidth||float||0||Specifies the minimum width for the Button nodes in the group. The |
|maxWidth||float||32767||When set, specifies the maximum width for the Button nodes in the group. The |
|buttonHeight||float||0||Specifies the height of each Button node in the group. Only set to override the system default.|
|rightJustify||Boolean||false||Specifies whether the button labels and icons should be right- or left-justified. When right-justified and there is an icon, it appears to the right of the button label.|
Set to the index of the selected button whenever the user selects a button in the group.
Set to the index of the focused button whenever a button in the group receives the key focus.
Causes the button with the specified index to receive the focus when the ButtonGroup node has the key focus. Note that if the ButtonGroup node does not have the key focus when the
|buttons||array of strings||[ ]||Write-Only |
Allows a set of Button nodes to be easily created by providing an array of button labels. Each string in the array will result in a Button node to be added to the ButtonGroup node, using the string as the button label.