Content:
- Methods

If you have much data to display which doesn't fit in the area availabe, you probably want to use a Scroller.

scr = app.CreateScroller( width, height, options ) → app object: Scroller

The options for the Scroller are the same as the LinearLayout fill options, which set how a Scroller sizes within it's parent:- “FillX”, “FillY” and “FillXY”. By default Scrollers will auto-size to wrap their contents.

To add other controls to your scroller you need to put them in a scroller layout first, which you can then add to the scroller object.

Example - Example click to expand contents 

Methods

The following methods are available on the Scroller object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options ) → Number
GetLeft( options ) → Number
GetParent() → app object
GetPosition( options ) → Object: { left, top, width, height }
GetScrollX() → Number: fraction (0..1)
GetScrollY() → Number: fraction (0..1)
GetTop( options ) → Number
GetType() → String: “Scroller”
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
ScrollBy( x, y )
ScrollTo( x, y )
SetScale( x, y )
Show()