This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
built_in:lists [2015/07/07 09:49] octazid new methods |
built_in:lists [2016/08/02 19:17] administrator change method object name |
||
---|---|---|---|
Line 73: | Line 73: | ||
* " | * " | ||
* " | * " | ||
+ | |||
+ | You can also use resource images or images from your sdcard instead of the keywords, for example:- " | ||
+ | | ||
====Example - Title + Icon==== | ====Example - Title + Icon==== | ||
Line 94: | Line 97: | ||
</ | </ | ||
- | ====Example - Title + Icon==== | + | ====Example - Title + Body==== |
<code javascript> | <code javascript> | ||
function OnStart() | function OnStart() | ||
Line 199: | Line 202: | ||
For examples of the **[[same methods]]** look here. | For examples of the **[[same methods]]** look here. | ||
^ Method | ^ Method | ||
- | | ListView.AddItem( title, | + | | List.AddItem( title, |
- | | ListView.GetAbsHeight() | + | | List.GetAbsHeight() |
- | | ListView.GetAbsWidth() | + | | List.GetAbsWidth() |
- | | ListView.GetHeight() | + | | List.GetHeight() |
- | | ListView.GetItemByIndex( index ) | + | | List.GetItemByIndex( index ) |
- | | ListView.GetLength() | + | | List.GetLength() |
- | | ListView.GetList( delimeter ) | string = list.GetList("," | + | | List.GetList( delimeter ) | string = list.GetList("," |
- | | ListView.GetPosition() | + | | List.GetPosition() |
- | | ListView.GetTextSize( mode ) | + | | List.GetTextSize( mode ) |
- | | ListView.GetType() | + | | List.GetType() |
- | | ListView.GetVisibility() | + | | List.GetVisibility() |
- | | ListView.GetWidth() | + | | List.GetWidth() |
- | | ListView.InsertItem(index, | + | | List.InsertItem(index, |
- | | ListView.RemoveAll() | + | | List.RemoveAll() |
- | | ListView.RemoveItem( title ) | + | | List.RemoveItem( title ) |
- | | ListView.RemoveItemByIndex( index ) | | | + | | List.RemoveItemByIndex( index ) | | |
- | | ListView.ScrollToItem( name,body ) | + | | List.ScrollToItem( name,body ) |
- | | ListView.ScrollToItemByIndex( index ) | | | + | | List.ScrollToItemByIndex( index ) | | |
- | | ListView.SelectItem( title, | + | | List.SelectItem( title, |
- | | ListView.SelectItemByIndex( index, | + | | List.SelectItemByIndex( index, |
- | | ListView.SetBackColor( colorCode ) | + | | List.SetBackColor( colorCode ) |
- | | ListView.SetBackGradient( color1, | + | | List.SetBackGradient( color1, |
- | | ListView.SetBackGradientRadial( x, | + | | List.SetBackGradientRadial( x, |
- | | ListView.SetBackground( imagefile, | + | | List.SetBackground( imagefile, |
- | | ListView.SetDivider( height, | + | | List.SetDivider( height, |
- | | ListView.SetEllipsize( mode ) | | | + | | List.SetEllipsize( mode ) | | |
- | | ListView.SetEllipsize1( mode ) | + | | List.SetEllipsize1( mode ) |
- | | ListView.SetEllipsize2( mode ) | + | | List.SetEllipsize2( mode ) |
- | | ListView.SetFontFile( file ) | + | | List.SetFontFile( file ) |
- | | ListView.SetHiTextColor1( colorCode ) | | | + | | List.SetHiTextColor1( colorCode ) | | |
- | | ListView.SetHiTextColor2( colorCode ) | | | + | | List.SetHiTextColor2( colorCode ) | | |
- | | ListView.SetItem( title, | + | | List.SetItem( title, |
- | | ListView.SetItemByIndex( index, | + | | List.SetItemByIndex( index, |
- | | ListView.SetList( list, | + | | List.SetList( list, |
- | | ListView.SetMargins( left, | + | | List.SetMargins( left, |
- | | ListView.SetOnLongTouch( callback ) | sets the function called when list is long-touched | + | | List.SetOnLongTouch( callback ) | sets the function called when list is long-touched |
- | | ListView.SetOnTouch( callback ) | sets the function called when list is touched | + | | List.SetOnTouch( callback ) | sets the function called when list is touched |
- | | ListView.SetPadding( left, | + | | List.SetPadding( left, |
- | | ListView.SetPosition( left, | + | | List.SetPosition( left, |
- | | ListView.SetScale( x,y ) | + | | List.SetScale( x,y ) |
- | | ListView.SetSize( width, | + | | List.SetSize( width, |
- | | ListView.SetTextColor( colorCode ) | + | | List.SetTextColor( colorCode ) |
- | | ListView.SetTextColor1( colorCode ) | | | + | | List.SetTextColor1( colorCode ) | | |
- | | ListView.SetTextColor2( colorCode ) | | | + | | List.SetTextColor2( colorCode ) | | |
- | | ListView.SetTextMargins( left, | + | | List.SetTextMargins( left, |
- | | ListView.SetTextShadow( radius, | + | | List.SetTextShadow( radius, |
- | | ListView.SetTextShadow1( radius, | + | | List.SetTextShadow1( radius, |
- | | ListView.SetTextShadow2( radius, | + | | List.SetTextShadow2( radius, |
- | | ListView.SetTextSize( size,mode ) | | | + | | List.SetTextSize( size,mode ) | | |
- | | ListView.SetVisibility( ShowHide ) | + | | List.SetVisibility( ShowHide ) |
===== Available Options ===== | ===== Available Options ===== |