This project is read-only.

UIListBox

onselectedindexchanged

Type: event
Return: function
Description: fires when the listbox selection has changed

ondoubleclick

Type: event
Return: function
Description: fires when the listbox item has been double clicked

id

Type: property (read/write)
Return: string
Description: an identifier for the listbox

x

Type: property (read/write)
Return: int
Description: the x position of the listbox

y

Type: property (read/write)
Return: int
Description: the y position of the listbox

visible

Type: property (read/write)
Return: bool
Description: whether the listbox is visible on the UI panel

enabled

Type: property (read/write)
Return: bool
Description: whether the listbox is clickable

width

Type: property (read/write)
Return: int
Description: the width of the listbox

height

Type: property (read/write)
Return: int
Description: the height of the listbox

promote

Type: function
Return: void
Description: increase the z index of the listbox

demote

Type: function
Return: void
Description: decrease the z index of the listbox

selectedIndex

Type: property (read/write)
Return: int
Description: get or set the selected item in the listbox

itemAt

Type: function
Return: string
Description: get an item's text based on it's index or position within the listbox
Argument 1: int

add

Type: function
Return: void
Description: add an item to the end of the listbox
Argument 1: string

insertAt

Type: function
Return: void
Description: insert an item into the listbox at a specific index or position
Argument 1: int
Argument 2: string

removeAt

Type: function
Return: void
Description: remove an item from the listbox at a specific index or position
Argument 1: int

clear

Type: function
Return: void
Description: remove all items from the listbox

length

Type: property (read only)
Return: int
Description: return the number of items in the listbox

Last edited Feb 6, 2014 at 10:08 PM by oobenoob, version 1