GuiGridListGetSelectedItems: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: {{Client function}} __NOTOC__ This function returns the items selected in the specified grid list. ==Syntax== <syntaxhighlight lang="lua"> table guiGridListGetSelectedItems ( e...)
 
Line 12: Line 12:


===Returns===
===Returns===
{{Needs Checking|Not sure about the table format, feel free to correct! [[User:Awwu|Awwu]] 20:53, 26 March 2009 (CET)}}
Returns a table over the selected items in the [[Element/GUI/Gridlist|grid list]] in this format:
Returns a table over the selected items in the [[Element/GUI/Gridlist|grid list]] in this format:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">

Revision as of 01:27, 6 April 2012

This function returns the items selected in the specified grid list.

Syntax

table guiGridListGetSelectedItems ( element gridList )

Required Arguments

  • gridList: The grid list which selected items you want to retrieve.

Returns

Returns a table over the selected items in the grid list in this format:

table = {
    [1] = {
        ["column"], -- has the first selected item's column ID
        ["row"] -- has the first selected item's row ID
    },
    [2] = {
        ["column"],-- has the second selected item's column ID
        ["row"] -- has the second selected item's row ID
    },
    ...
}


if everything was successful or false if invalid arguments were passed.

Example

-- Todo...

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