tvCollapse: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
Line 11: Line 11:
|eff= local
|eff= local


| Collapses tree item pointed to by the path. IDC means id of parent Tree View.
|descr= Collapses tree item pointed to by the path. IDC means id of parent Tree View.


|s1=  '''tvCollapse''' [idc, path]
|s1=  '''tvCollapse''' [idc, path]

Revision as of 22:26, 13 June 2021

Hover & click on the images for description

Description

Description:
Collapses tree item pointed to by the path. IDC means id of parent Tree View.
Groups:
GUI Control - Tree View

Syntax

Syntax:
tvCollapse [idc, path]
Parameters:
[idc, path]: Array
idc: Number
path: Array - Item Tree View Path. [] will collapse the whole tree and it will disappear
Return Value:
Nothing

Alternative Syntax

Syntax:
control tvCollapse path
Parameters:
control: Control
path: Array - Item Tree View Path. [] will collapse the whole tree and it will disappear
Return Value:
Nothing

Examples

Example 1:
tvCollapse [101, [0]];
Example 2:
_ctrl tvCollapse [0];

Additional Information

See also:
tvCollapseAlltvAddtvCleartvCounttvCurSeltvDatatvDeletetvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue

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