lbSetSelected: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "")  | 
				Lou Montana (talk | contribs)  m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)  | 
				||
| Line 1: | Line 1: | ||
{{Command  | {{Command  | ||
| arma1   | | arma1  | ||
|1.00|=Game version  | |1.00|=Game version  | ||
|gr1= GUI Control - ListBox   | |gr1= GUI Control - ListBox  | ||
| Sets the selection state of the given row of the given listbox of style LB_MULTI. The command has to be called for every row which is needed to be selected in multi-selection listbox. For single selection listbox use [[lbSetCurSel]] instead.  | | Sets the selection state of the given row of the given listbox of style LB_MULTI. The command has to be called for every row which is needed to be selected in multi-selection listbox. For single selection listbox use [[lbSetCurSel]] instead.  | ||
| control '''lbSetSelected''' [index, selected]   | | control '''lbSetSelected''' [index, selected]  | ||
|p1= control: [[Control]]   | |p1= control: [[Control]]  | ||
|p2= [index, selected]: [[Array]]   | |p2= [index, selected]: [[Array]]  | ||
|p3= index: [[Number]]   | |p3= index: [[Number]]  | ||
|p4= selected: [[Boolean]]   | |p4= selected: [[Boolean]]  | ||
| [[Nothing]]   | | [[Nothing]]  | ||
|x1= <code>_control [[lbSetSelected]] [0, [[true]]<nowiki>]</nowiki>;</code>   | |x1= <code>_control [[lbSetSelected]] [0, [[true]]<nowiki>]</nowiki>;</code>  | ||
| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]]   | | [[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]]  | ||
}}  | }}  | ||
Revision as of 01:05, 18 January 2021
Description
- Description:
 - Sets the selection state of the given row of the given listbox of style LB_MULTI. The command has to be called for every row which is needed to be selected in multi-selection listbox. For single selection listbox use lbSetCurSel instead.
 - Groups:
 - GUI Control - ListBox
 
Syntax
- Syntax:
 - control lbSetSelected [index, selected]
 - Parameters:
 - control: Control
 - [index, selected]: Array
 - index: Number
 - selected: Boolean
 - Return Value:
 - Nothing
 
Examples
- Example 1:
 _control lbSetSelected [0, true];
Additional Information
- See also:
 - lbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue
 
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