Content:
- Methods

If you want to display many dataset of the same structure you might consider using the List object.

lst = app.CreateList( list, width, height, options, delim ) → app object: List

The List object supports multi-line list items and can show icons. Multi-line items are created by dividing each list item up using the “:” (colon) character. If you need to use a colon character in your item text then use this character sequence: “^c^”.
You can have one icon and some body text using the following formats:

“title”
“title:icon”
“title:body:icon”

Alternatively you can use the AddItem method which accepts title, body and icon as parameters to generically build up your list.

You can specify your own icon file for example “Img/MyIcon.png”, or one of the special built-in icons using the following key words: “audio”, “photo”, “video”, “folder”, “audiofolder”, “photofolder”, “videofolder” and “playlist”.

Example - Title + Icon click to expand contents 

Example - Title + Body click to expand contents 

You can use the SetOnTouch and SetOnLongTouch methods to define a function you want to be called when a list item is selected. The selected item title, body, type and index are passed into your OnTouch callback function as parameters.

Example - Simple click to expand contents 

You can change the look of a List using the SetBackColor and SetTextColor functions on the list object. You can also set a background image/pattern or background gradient for the List using the SetBackground and SetBackGradient functions.

Example - Gray on White click to expand contents 

You can also create lists items that look like buttons by using one of the following options: “AlumButton”, “GreenButton”, “OrangeButton”.

Example - Orange Buttons click to expand contents 

Or create lists with Gradient backgrounds like this:

Example - Gradient Background click to expand contents 

Methods

The following methods are available on the List object:

Expand()
Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetHeight( options ) → Number
GetItem( title ) → Object: { title, body, image }
GetItemByIndex( index ) → Object: { title, body, image }
GetLeft( options ) → Number
GetLength() → Number: integer
GetList( delim ) → List: of objects: ,String:
GetParent() → app object
GetPosition( options ) → Object: { left, top, width, height }
GetTextSize( mode ) → Number
GetTop( options ) → Number
GetType() → String: “List”
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
SetScale( x, y )
Show()