allControls: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "<code>_([a-zA-Z0-9_]+) = \[\[([a-zA-Z0-9]+)\]\] _([a-zA-Z0-9_]+);?<\/code>" to "<sqf>_$1 = $2 _$3;</sqf>")
Line 24: Line 24:
|x1= <code>_allCtrls = [[allControls]] [[findDisplay]] 46;</code>
|x1= <code>_allCtrls = [[allControls]] [[findDisplay]] 46;</code>


|x2= <code>_allSubCtrls = [[allControls]] _myControlsGroup;</code>
|x2= <sqf>_allSubCtrls = allControls _myControlsGroup;</sqf>


|seealso= [[allDisplays]] [[controlsGroupCtrl]] [[ctrlCreate]] [[allVariables]] [[allCurators]] [[allGroups]] [[allDead]] [[allDeadMen]]
|seealso= [[allDisplays]] [[controlsGroupCtrl]] [[ctrlCreate]] [[allVariables]] [[allCurators]] [[allGroups]] [[allDead]] [[allDeadMen]]
}}
}}

Revision as of 21:24, 7 May 2022

Hover & click on the images for description

Description

Description:
Returns a list of all controls for desired existing display. Returned controls also include controls from 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