-
Notifications
You must be signed in to change notification settings - Fork 3
Numeric Up Down
Gregory "Mad Pink" Miller edited this page Oct 13, 2019
·
4 revisions
This control consists of a label, a value and 2 buttons which increase and decrease the value.
- a property that lists the order of the elements:
- label - is the text label describing the control
- plus/minus - is the icon button which will increase/decrease the value
- value - the numeric value being manipulated
- There are the layout options:
- plus/value/minus/label (defaul1t)
- plus/minus/value/label
- value/plus/minus/label
- minus/value/plus/label
- minus/plus/value/label
- value/minus/plus/label
The follow are the subkeys that can be individually set for each control:
- "label" - the text that will be displayed
- "min" - lowest possible value for this control, if this number is reached, the minus button will not be drawn; default = 0
- "max" - highest possible value for this control, if this number is reached, the plus button will not be drawn; default = 100
- "step" - the amount each plus or minus will increment, for example if set to 5, then each time the plus button is pressed, it will add 5 to the value; default = 1
- "iconplus" - icon the will be used for the add/plus button; default = iconfam1:updown:plus
- "iconminus" - icon that will be used fo the subtract/minus button; default = iconfam1:updown:minus
- "value" - the current numeric value; default = 50
- "prefix" - string presented before value; default = " "
- "suffix" - string presented after value; default = " "
- "valuecolor" - color of the numeric value displayed; default = mControlValueColor
- "textcolor" - color of the label text displayed; default = mControlTextColor
- "objectcolor" - color of the icons displayed; default = mControlObjectColor
- "textsize" - font size for label text; default = mControlTextSize
- "textfont" - font for label text; default = mControlTextFont
- "valuesize" - font size for the value; default = controlValueSize
- "valuefont" - font for the value; default = controlValueFont
add - short
Unless specified above, the value is set to "default"