Spinner
Definition
A Spinner
component that displays a dialog with a list of elements. These elements can be set in the Designer or Blocks Editor by setting the ElementsFromString
property to a comma-separated list of values (for example, choice 1, choice 2, choice 3
) or by setting the Elements
property to a List in the Blocks editor. Spinners are created with the first item already selected, so selecting it does not generate an AfterSelecting
event. Consequently it’s useful to make the first Spinner
item be a non-choice like “Select from below…”.
Properties
- Elements
- Specifies the list of choices to display.
- ElementsFromString
- Set the list of choices from a string of comma-separated values.
- Height
- Specifies the
Spinner
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
Spinner
’s vertical height as a percentage of theScreen
’sHeight
. - Prompt
- Specifies the text used for the title of the Spinner window.
- Selection
- Specifies the current selected item in the
Spinner
. - SelectionIndex
- Set the
Spinner
selection to the element at the given index. If an attempt is made to set this to a number less than1
or greater than the number of items in theSpinner
,SelectionIndex
will be set to0
, andSelection
will be set to the empty text. - Visible
- Specifies whether the
Spinner
should be visible on the screen. Value istrue
if theSpinner
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
Spinner
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
Spinner
as a percentage of theScreen
’sWidth
.