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/04/18 11:15] octazid [Example - HTML Font Color] |
built_in:lists [2016/06/25 14:48] 2.28.161.118 [Example - Gray on white] |
||
---|---|---|---|
Line 73: | Line 73: | ||
* " | * " | ||
* " | * " | ||
+ | |||
+ | You can also use the images on your sdcard, for example: | ||
+ | |||
+ | " | ||
+ | | ||
====Example - Title + Icon==== | ====Example - Title + Icon==== | ||
Line 94: | Line 99: | ||
</ | </ | ||
- | ====Example - Title + Icon==== | + | ====Example - Title + Body==== |
<code javascript> | <code javascript> | ||
function OnStart() | function OnStart() | ||
Line 198: | Line 203: | ||
Some controls use the same methods.\\ | Some controls use the same methods.\\ | ||
For examples of the **[[same methods]]** look here. | For examples of the **[[same methods]]** look here. | ||
- | ^Method ^Description ^ | + | ^ Method |
- | |ListView.AddItem( title, | + | | ListView.AddItem( title, |
- | |ListView.GetAbsHeight() | | | + | | ListView.GetAbsHeight() |
- | |ListView.GetAbsWidth() | | | + | | ListView.GetAbsWidth() |
- | |ListView.GetHeight() | | | + | | ListView.GetHeight() |
- | |ListView.GetItemByIndex( index ) | | | + | | ListView.GetItemByIndex( index ) |
- | |ListView.GetList( delimeter ) | string = list.GetList("," | + | | ListView.GetLength() |
- | |ListView.GetPosition() | | | + | | ListView.GetList( delimeter ) | string = list.GetList("," |
- | |ListView.GetTextSize( mode ) | | | + | | ListView.GetPosition() |
- | |ListView.GetType() | | | + | | ListView.GetTextSize( mode ) |
- | |ListView.GetVisibility() | | | + | | ListView.GetType() |
- | |ListView.GetWidth() | | | + | | ListView.GetVisibility() |
- | |ListView.RemoveItem( title ) | | | + | | ListView.GetWidth() |
- | |ListView.RemoveItemByIndex( index ) | | | + | | ListView.InsertItem(index, |
- | |ListView.ScrollToItem( name,body ) | | | + | | ListView.RemoveAll() |
- | |ListView.ScrollToItemByIndex( index ) | | | + | | ListView.RemoveItem( title ) |
- | |ListView.SelectItem( title, | + | | ListView.RemoveItemByIndex( index ) | |
- | |ListView.SelectItemByIndex( index, | + | | ListView.ScrollToItem( name,body ) |
- | |ListView.SetBackColor( colorCode ) | | | + | | ListView.ScrollToItemByIndex( index ) | |
- | |ListView.SetBackGradient( color1, | + | | ListView.SelectItem( title, |
- | |ListView.SetBackGradientRadial( x, | + | | ListView.SelectItemByIndex( index, |
- | |ListView.SetBackground( imagefile, | + | | ListView.SetBackColor( colorCode ) |
- | |ListView.SetDivider( height, | + | | ListView.SetBackGradient( color1, |
- | |ListView.SetEllipsize( mode ) | | | + | | ListView.SetBackGradientRadial( x, |
- | |ListView.SetEllipsize1( mode ) | | | + | | ListView.SetBackground( imagefile, |
- | |ListView.SetEllipsize2( mode ) | | | + | | ListView.SetDivider( height, |
- | |ListView.SetFontFile( file ) | | | + | | ListView.SetEllipsize( mode ) | |
- | |ListView.SetHiTextColor1( colorCode ) | | | + | | ListView.SetEllipsize1( mode ) |
- | |ListView.SetHiTextColor2( colorCode ) | | | + | | ListView.SetEllipsize2( mode ) |
- | |ListView.SetItem( title, | + | | ListView.SetFontFile( file ) |
- | |ListView.SetItemByIndex( index, | + | | ListView.SetHiTextColor1( colorCode ) | |
- | |ListView.SetList( list, | + | | ListView.SetHiTextColor2( colorCode ) | |
- | |ListView.SetMargins( left, | + | | ListView.SetItem( title, |
- | |ListView.SetOnLongTouch( callback ) |sets the function called when list is long-touched | | + | | ListView.SetItemByIndex( index, |
- | |ListView.SetOnTouch( callback ) |sets the function called when list is touched | | + | | ListView.SetList( list, |
- | |ListView.SetPadding( left, | + | | ListView.SetMargins( left, |
- | |ListView.SetPosition( left, | + | | ListView.SetOnLongTouch( callback ) | sets the function called when list is long-touched |
- | |ListView.SetScale( x,y ) | | | + | | ListView.SetOnTouch( callback ) | sets the function called when list is touched |
- | |ListView.SetSize( width, | + | | ListView.SetPadding( left, |
- | |ListView.SetTextColor( colorCode ) | | | + | | ListView.SetPosition( left, |
- | |ListView.SetTextColor1( colorCode ) | | | + | | ListView.SetScale( x,y ) |
- | |ListView.SetTextColor2( colorCode ) | | | + | | ListView.SetSize( width, |
- | |ListView.SetTextMargins( left, | + | | ListView.SetTextColor( colorCode ) |
- | |ListView.SetTextShadow( radius, | + | | ListView.SetTextColor1( colorCode ) | |
- | |ListView.SetTextShadow1( radius, | + | | ListView.SetTextColor2( colorCode ) | |
- | |ListView.SetTextShadow2( radius, | + | | ListView.SetTextMargins( left, |
- | |ListView.SetTextSize( size,mode ) | | | + | | ListView.SetTextShadow( radius, |
- | |ListView.SetVisibility( ShowHide ) | | | + | | ListView.SetTextShadow1( radius, |
+ | | ListView.SetTextShadow2( radius, | ||
+ | | ListView.SetTextSize( size,mode ) | | ||
+ | | ListView.SetVisibility( ShowHide ) | ||
===== Available Options ===== | ===== Available Options ===== |