SliderFieldLayout
Package: Libraries.Interface.Layouts · Inherits from: Libraries.Language.Object, Libraries.Interface.Layouts.Layout
The SliderFieldLayout lays out a SliderField: its label, its slider and its number field. When there is room, they are on one line, centered up and down: the label at the left in a column of its own width, the number field at the right, and the slider between them, taking the width left. When the slider would be narrower than its least width, the label and the number field share the first line and the slider goes on its own line under them, as wide as the container. The container is as tall as what it holds.
Actions
GetFieldWidth()
This action returns how wide the number field is, in pixels before the interface scale.
Returns
number: The field's width.
GetLabelWidth()
This action returns how wide the label's column is, in pixels before the interface scale.
Returns
number: The label column's width.
GetLeastSliderWidth()
This action returns the slider's least width on the line with the label and field, in pixels before the interface scale.
Returns
number: The slider's least width.
Layout(Libraries.Interface.Controls.Control container, Libraries.Containers.Array<Libraries.Interface.Item2D> items, number containerWidth, number containerHeight)
This action returns the slider's least width on the line with the label and field, in pixels before the interface scale.
Parameters
containerLibraries.Interface.Controls.ControlitemsLibraries.Containers.Array<Libraries.Interface.Item2D>containerWidthnumbercontainerHeightnumber
SetFieldWidth(number value)
This action sets how wide the number field is, in pixels before the interface scale. The default is 56.
Parameters
valuenumber: The field's width.
SetLabelWidth(number value)
This action sets how wide the label's column is, in pixels before the interface scale, so labels in a panel line up. The default is 120.
Parameters
valuenumber: The label column's width.
SetLeastSliderWidth(number value)
This action sets the least width the slider has on the line with the label and field, in pixels before the interface scale. When it would be narrower, the slider goes on its own line. The default is 110.
Parameters
valuenumber: The slider's least width.