lbAdd: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Fred Gandt (talk | contribs) m (<pre> to <code> + "see also") |
||
Line 12: | Line 12: | ||
| Adds an item with the given text to the listbox or combobox with id idc of the topmost user [[dialog]]. | | Adds an item with the given text to the listbox or combobox with id idc of the topmost user [[dialog]]. | ||
<br> | |||
It returns the index of the newly added item. |= Description | It returns the index of the newly added item. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 33: | Line 33: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>_index = [[lbAdd]] [101, "First item"];</code> |= Example 1 | ||
|x2= < | |||
|x2= <code>_index = _control [[lbAdd]] "First item";</code> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] |= See also | ||
}} | }} |
Revision as of 02:30, 11 April 2014
Description
- Description:
- Adds an item with the given text to the listbox or combobox with id idc of the topmost user dialog.
It returns the index of the newly added item. - Groups:
- Uncategorised
Syntax
- Syntax:
- Number = lbAdd [idc, text]
- Parameters:
- [idc, text]: Array
- idc: Number of control
- text: String
- Return Value:
- Number
Alternative Syntax
Examples
Additional Information
- See also:
- lbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.5
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Command Group: GUI Control
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters