ListBox description ...


Properties


Font

int Font

Gets/sets the font used to draw the list items.


HideBorder

Gets/sets whether the border around the list box is hidden.


HideScrollArrows

Gets/sets whether the clickable scroll arrows are hidden.


ItemCount

Gets the number of items currently in the list.


Items

Accesses the text for the items in the list.


RowCount

Gets the number of visible rows that the listbox can display.


SaveGameSlots

Gets the save game number that each row in the list corresponds to, after using FillSaveGameList.


SelectedIndex

Gets/sets the currently selected item.


TopItem

Gets/sets the first visible item in the list.


Methods


AddItem

Adds a new item to the bottom of the list with the specified text.


Clear

Removes all the items from the list.


FillDirList

Fills the list box with all the filenames that match the specified file mask.


FillSaveGameList

Fills the list box with all the current user's saved games.


GetItemAtLocation

Gets the item index at the specified screen co-ordinates, if they lie within the list box.


InsertItemAt

Inserts a new item before the specified index.


RemoveItem

Removes the specified item from the list.


ScrollDown

Scrolls the list down one row.


ScrollUp

Scrolls the list up one row.