GuiGridListGetSelectedItems

From Multi Theft Auto: Wiki
Revision as of 19:53, 26 March 2009 by Awwu (talk | contribs) (New page: {{Client function}} __NOTOC__ This function returns the items selected in the specified grid list. ==Syntax== <syntaxhighlight lang="lua"> table guiGridListGetSelectedItems ( e...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Dialog-information.png This article needs checking.

Reason(s): Not sure about the table format, feel free to correct! Awwu 20:53, 26 March 2009 (CET)

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