tvCollapse: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \| *s2 *=" to "|r1=$1 |s2=")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 13: Line 13:
| Collapses tree item pointed to by the path. IDC means id of parent Tree View.
| Collapses tree item pointed to by the path. IDC means id of parent Tree View.


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


|p1= [idc, path]: [[Array]]
|p1= [idc, path]: [[Array]]

Revision as of 00:29, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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