lbSetText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 13: Line 13:
| Sets the text on the left side of the item with the given index of the listbox or combobox with id idc of the topmost user dialog.
| Sets the text on the left side of the item with the given index of the listbox or combobox with id idc of the topmost user dialog.


| '''lbSetText''' [idc, index, name]
|s1=  '''lbSetText''' [idc, index, name]
 
|p1= [idc, index, name]: [[Array]]
|p1= [idc, index, name]: [[Array]]
|p2= idc: [[Number]] of control
|p2= idc: [[Number]] of control

Revision as of 23:13, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
GUI Control - ListBox

Syntax

Syntax:
lbSetText [idc, index, name]
Parameters:
[idc, index, name]: Array
idc: Number of control
index: Number
name: String
Return Value:
Nothing

Alternative Syntax

Syntax:
control lbSetText [index, name]
Parameters:
control: Control
[index, name]: Array
index: Number
name: String
Return Value:
Nothing

Examples

Example 1:
lbSetText [101, 0, "iskoda"];
Example 2:
_control lbSetText [0, "iskoda"];

Additional Information

See also:
lbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetSelectedlbSetTextRightlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValuelbSetPicturelbSetPictureColor

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
Posted: Sep 10 2014
ffur2007slx2_5
More information on the CT_LISTBOX command family can be found here.