Items: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Bot (Edward's framework)) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
== | ==items== | ||
Adds one or more items to a control. | |||
== | Lua Syntax: | ||
<pre>items({flags=1, | |||
image = image, | |||
name = text, | |||
action = script, | |||
select = selectitem})</pre> | |||
===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. |
Latest revision as of 11:57, 16 August 2009
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.