tvSetSelected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
m (Some wiki formatting)
 
Line 11: Line 11:


|p1= control: [[Control]]
|p1= control: [[Control]]
|p2= path: [[Array]]
|p2= path: [[Array]]
|p3= selected: [[Boolean]]
|p3= selected: [[Boolean]]


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_control [[tvSetSelected]] <nowiki>[[</nowiki>0], [[true]]];</code>
|x1= <sqf>_control tvSetSelected [[0], true];</sqf>


|seealso= [[tvSelection]] [[tvIsSelected]]
|seealso= [[tvSelection]] [[tvIsSelected]]
}}
}}

Latest revision as of 15:17, 5 May 2022

Hover & click on the images for description

Description

Description:
Sets the selection state of given treeview item in multi-select control.
Groups:
GUI Control - Tree View

Syntax

Syntax:
control tvSetSelected [path, selected]
Parameters:
control: Control
path: Array
selected: Boolean
Return Value:
Nothing

Examples

Example 1:
_control tvSetSelected [[0], true];

Additional Information

See also:
tvSelection tvIsSelected

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