GuiGridListSetSelectedItem

From Multi Theft Auto: Wiki
Revision as of 01:10, 21 May 2008 by 50pence (talk | contribs)
Jump to navigation Jump to search

This function selects an item from a gridlist. If you want to deselect selected item use 0 as rowIndex and 0 as a columnIndex param.

Syntax

bool guiGridListSetSelectedItem ( element gridList, int rowIndex, int columnIndex )

Required Arguments

  • gridList: the grid list you want to select an item from
  • rowIndex: the row you want to select (index 0 is the first row)
  • columnIndex: the column you want to select (index 1 is the first column)

Returns

Returns true if the passed arguments are correct and the item has been selected, false otherwise.

Example

guiGridListSetSelectedItem ( spawnScreenGridList, 0, 0) -- resets selection to zero

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows