allControls: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
(Fix description)
 
Line 6: Line 6:
|gr1= GUI Control
|gr1= GUI Control


|descr= Returns a list of all controls for desired existing display. Returned controls also include controls from [[CT_CONTROLS_GROUP]]s.
|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
|s1= [[allControls]] display

Latest revision as of 23:03, 4 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