allControls: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1.38)
(Fix description)
 
(39 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.38


| 1.38 |= Game version
|gr1= GUI Control
____________________________________________________________________________________________


| Returns a list of all controls for desired existing display. Returned controls also include controls from control groups |= Description
|descr= Returns a list of all controls in the provided display or controls group, including "sub"-controls from other [[CT_CONTROLS_GROUP]]s.
____________________________________________________________________________________________


|s1= [[allControls]] display


| '''allControls''' display |= Syntax
|p1= display: [[Display]]


|p1= display: [[Display]]|=
|r1= [[Array]] of [[Control]]s


| [[Array]] of [[Control]]s |= RETURNVALUE
|s2= [[allControls]] controlsGroup
____________________________________________________________________________________________


| x1= <code>_allCtrls = [[allControls]] [[findDisplay]] 46;</code>|= EXAMPLE1
|s2since= arma3 2.04
____________________________________________________________________________________________


| [[allDisplays]], [[allVariables]], [[allCurators]], [[allGroups]], [[allDead]], [[allDeadMen]] |= SEEALSO
|p21= controlsGroup: [[Control]] - [[CT_CONTROLS_GROUP]]


| |= MPBEHAVIOUR
|r2= [[Array]] of [[Control]]s
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x1= <sqf>_allCtrls = allControls findDisplay 46;</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>_allSubCtrls = allControls _myControlsGroup;</sqf>
</dl>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[allDisplays]] [[controlsGroupCtrl]] [[ctrlCreate]] [[allVariables]] [[allCurators]] [[allGroups]] [[allDead]] [[allDeadMen]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:03, 5 February 2024

Hover & click on the images for description

Description

Description:
Returns a list of all controls in the provided display or controls group, including "sub"-controls from other CT_CONTROLS_GROUPs.
Groups:
GUI Control

Syntax

Syntax:
allControls display
Parameters:
display: Display
Return Value:
Array of Controls

Alternative Syntax

Syntax:
allControls controlsGroup
Parameters:
controlsGroup: Control - CT_CONTROLS_GROUP
Return Value:
Array of Controls

Examples

Example 1:
_allCtrls = allControls findDisplay 46;
Example 2:
_allSubCtrls = allControls _myControlsGroup;

Additional Information

See also:
allDisplays controlsGroupCtrl ctrlCreate allVariables allCurators allGroups allDead allDeadMen

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