Content:
- Properties
- Methods

Create Spinners using the CreateSpinner method of the app object.

spn = app.CreateSpinner( list, width=-1, height=-1, options? ) → app object: Spinner

You can allow the Spinner to auto-size by leaving out the dimensions or you can specify a width and/or height as decimal fractions of the screen's width and height.

Use the SetOnChange method of your spinner to set the name of a function you want to be called when the user selects an item.

You can get the current selection of the Spinner button at any time using the GetText method and replace the option list at any time by using the SetList method.

Use the SelectItem method to select a particular item in code.

Example - Example click to expand contents 

Properties

The following properties are available on the Spinner object:

dataObject: { key, value }

Methods

The following methods are available on the Spinner object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options? ) → Number
GetLeft( options? ) → Number
GetParent() → app object
GetPosition( options? ) → Object: { left, top, width, height }
GetText() → String
GetTextSize( mode? ) → Number
GetTop( options? ) → Number
GetType() → String: “Spinner”
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options? ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth? ) → Boolean
IsVisible() → Boolean
Method( name, types?, p1?, p2?, p3?, p4? ) → all types
Resize()
SetScale( x, y )
Show()