GuiComboBoxGetSelected: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Syntax added. Example needed.)
 
mNo edit summary
Line 1: Line 1:
{{Needs Example}}
{{Client function}}
{{Client function}}
__NOTOC__
__NOTOC__
Line 21: Line 22:
==See Also==
==See Also==
{{GUI functions}}
{{GUI functions}}
[[Category:Needs_Example]]

Revision as of 19:48, 5 December 2011

Accessories-text-editor.png Script Example Missing Function GuiComboBoxGetSelected needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function returns the index of the selected combobox item.

Syntax

int guiComboBoxGetSelected ( element comboBox )

Required Arguments

  • comboBox: the combobox you want to know the selected item index of

Returns

Returns the index of the selected item if the specified combobox is valid and has a selected item, -1 if no item is selected, false or nil otherwise.

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