Items

From VisionaireWiki
Jump to navigation Jump to search

items

Adds one or more items to a control.

Lua Syntax:

items({flags=1, 
    image = image, 
    name = text, 
    action = script, 
    select = selectitem})

Arguments

Flags

i/image

Associates an image with an item
image - Filename of an image-file.

n/name

Associates a text with an item
text - Text to use for the list-entry.

a/action

Associates a Lua-script with an item
script - Script to execute when item is selected/activcated.

s/select

Selects an item in the control
selectitem - Specifies the item (first item starts at 0) which will be selected.If -1 is passed no item is selected. If the flag is ommited the first item is selected by default.

Return Values

None.