menuCollapse: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|gr1= GUI Control |GROUP1=" to "|gr1= GUI Control - Menu |GROUP1=")
m (example, see also and 2nd syntax)
Line 14: Line 14:
|p2= path: [[Array]] |PARAMETER2=
|p2= path: [[Array]] |PARAMETER2=
| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
<!--
 
|s2= control |Alternative Syntax=
|s2= control [[menuCollapse]] path |Alternative Syntax=
|p21= control: [[Control]] |Alternative Parameter 1=
|p21= control: [[Control]] |Alternative Parameter 1=
|p22= |Alternative Parameter 22=
|p22= path: [[Array]] |Alternative Parameter 2=
|p23=  |Alternative Parameter 3=
|r2=  [[Nothing]] |Alternative Return Value=
|r2=  |Alternative Return Value=
 
-->
|x1=  <Code>[[findDisplay]] 313 [[displayCtrl]] 120 [[menuCollapse]] [0];</code>|EXAMPLE1=
|x1=  |EXAMPLE1=
 
| ‎[[menuEnable]], [[menuExpand]], [[menuSetData]], [[menuSetValue]], [[‎menuSetCheck]], [[menuSetAction]], [[menuDelete]], [[menuAdd]], [[‎menuHover]], [[menuValue]], [[menuURL]], [[‎menuText]], [[menuSort]], [[‎menuSize]], [[menuEnabled]], [[‎menuChecked]], [[menuAction]], [[menuShortcutText]], [[menuShortcut]], [[menuPicture]], [[menuData]], [[menuClear]], [[menuSetPicture]] |SEEALSO=
| ‎[[menuExpand]] |SEEALSO=
}}
}}



Revision as of 09:27, 18 October 2020

Hover & click on the images for description

Description

Description:
Collapses item on given path and all its childs.
Groups:
GUI Control - Menu

Syntax

Syntax:
menuCollapse [idc, path]
Parameters:
idc: Number
path: Array
Return Value:
Nothing

Alternative Syntax

Syntax:
control menuCollapse path
Parameters:
control: Control
path: Array
Return Value:
Nothing

Examples

Example 1:
findDisplay 313 displayCtrl 120 menuCollapse [0];

Additional Information

See also:
menuExpand

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

Bottom Section