tvSetSelected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command |game1= arma3dev |Game name= |version= 2.01 |Game version= ____________________________________________________________________________________________ |descr= Se...")
 
m (Some wiki formatting)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|game1= arma3dev |Game name=
|game1= arma3
|version1= 2.02


|version= 2.01 |Game version=
|gr1= GUI Control - Tree View
____________________________________________________________________________________________


|descr= Sets the selection state of given treeview item in multi-select control. |Description=
|descr= Sets the selection state of given treeview item in multi-select control.


|mp= |Multiplayer Behaviour=
|s1= control [[tvSetSelected]] [path, selected]


|pr= |Problems=
|p1= control: [[Control]]
____________________________________________________________________________________________


|s1= control [[tvSetSelected]] [path, selected] |Syntax=
|p2= path: [[Array]]


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


|r1= [[Nothing]] |Return Value=
|r1= [[Nothing]]
____________________________________________________________________________________________


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


|seealso= |See Also=
|seealso= [[tvSelection]] [[tvIsSelected]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14: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