GuiGridListSetSelectedItem: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Info on deselecting Item given)
No edit summary
Line 1: Line 1:
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
This function selects an item from a gridlist. If you want to deselect selected item use -1 as rowIndex and 0 as a columnIndex param.
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==  
==Syntax==  

Revision as of 01:10, 21 May 2008

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