Back

CreateTabs

Returns a Tabs object.

app.CreateTabs( list, width, height, options ) -> app object - Tabs

The following methods are avaiable on the Tabs object:

  Destroy()
  Explode()
  Focus()
  GetAbsHeight() -> number - integer
  GetAbsWidth() -> number - integer
  GetChildOrder( child ) -> unknown
  GetHeight( options ) -> number - fraction of screen height
  GetLayout( name ) -> app object - app layout
  GetLeft( options ) -> number - fraction of screen width
  GetPosition( options ) -> object - { left: fraction of parent width, top: fraction of parent height, right: fraction of parent width, bottom: fraction of parent height }
  GetTop( options ) -> number - fraction of screen height
  GetType() -> string - "Tabs"
  GetVisibility() -> string - "Show" or "Hide" or "Gone"
  GetWidth( options ) -> number - fraction of screen width
  Gone()
  Hide()
  IsEnabled() -> boolean
  IsOverlap( obj, depth ) -> unknown
  IsVisible() -> boolean
  Release()
  SetScale( x, y )
  Show()
  ShowTab( name )
  id -> string - "#id"

string - comma separated
number - fraction of screen width
unknown
app object
number
set color effects
function()
number - milliseconds
?
destroys object
destroys object with explode animation and sound
?
get height in pixels
get width in pixels
get screen relative height
string
get distance to left parent border
get distance to upper parent border
GetVisibility
get screen relative width
Set visibility "Gone"
Set visibility "Hide"
IsEnabled
IsVisible
?
string -
  hexadecimal: "#rrggbb", "#aarrggbb"
  colourName: "red", "green", ...
SetBackColor
number - fraction of screen height
SetBackColorRadial
string - path to file or folder ( "/absolute/..." or "relative/..." )
changes the background image
string - "Add" or "Multiply" or "?"
adjust color
boolean
en/disable object
move object from current position
function( ? )
function( self )
callen when object long pressed
function( event )
called when user touches object
function( event )
called when finger comes down
function( event )
called when finger was moved over screen
function( event )
called when finger leaves screen
set surrounding borders
SetPosition
number - factor
SetScale
change object size
SetTouchable
string - "Show" or "Hide" or "Gone"
change visibility mode
Set visibility "Show"
?
object id
{
    source: app object,
    action: string - "Down" or "Move" or "Up",
    count: number - integer,
    X: number - fraction of screen width,
    Y: number - fraction of screen height,
    x: list - [ x1, x2, x3 ],
    y: list - [ y1, y2, y3 ]
}