-
Notifications
You must be signed in to change notification settings - Fork 3
Button Bar
Gregory "Mad Pink" Miller edited this page Aug 14, 2019
·
4 revisions
The button bar is a group of buttons or a grid of buttons.
Default = "Action"
- Single - this is similar to a group of radio buttons. When a button is pressed a value of true is put in "selected" and all other buttons will be changed to false.
- Multiple - this is similar to a group of checkboxes. When a button is pressed, the value of "selected" is toggled between true and false.
- Action (default) - when a button is pressed, it will post "actionSelected" with the corresponding key number, the selected button key is also stored in the property buttonActionButton
- EntryPad (in progress) - a set of buttons with numbers, for example to enter a PIN
Default = "Icon Left"
- Text (default) - displays only text in the button
- Icon - displays only an icon in the button
- Icon Above Text - displays text with an icon above the text
- Icon Left - displays text with an icon to the left of the text
- Icon Left - displays text with an icon to the left of the text (and the text is centered in the button)
The follow are the subkeys that can be individually set for each control:
- "label" - the text that will be displayed in the button
- "show" - boolean when false does not shbow the button (but leaves an empty space where it would have been); default = true
- "selecttextcolor" - color of the button text when selected is true; default = controlValueColor
- "selectbuttoncolor" - color of the button background when selected is true; default = controlHiliteColor
- "unselectedtextcolor" - color of the button text when selected is false; default = controlObjectColor
- "unselectedbuttoncolor" - color of the button background when selected is false; default = controlTextColor
- "selectediconcolor" - color of the icon when selected is true (if displayed); default = controlHiliteColor
- "unselectediconcolor" - color of the button icon when selected is false (if displayed); default = controlObjectColor
- "selected" - boolean that determines of the button has been selected; default = false
- "icon" - the icon that will be displayed if applicable, and selected is false; default = controlIconA
- "selectedicon" - the icon that will be displayed if applicable, and selected is true; default = controlIconB
- "textsize" - font size for button text; default = textSize
- "textfont" - font for button text; default = textFont
- "value" - an optional value which can be used in LCS handlers; default = button number
Unless specified above, the value is set to "default"