ctrlParentControlsGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> <!-- BEGIN Note Section --> <!-- END Note Section --> </dl>" to "")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3
|game1= arma3
 
|version1= 1.58
|1.58


|gr1= GUI Control
|gr1= GUI Control


| Returns the parent control of a given child control. If the control is not part of a [[CT_CONTROLS_GROUP]] control then [[controlNull]] is returned. To return parent [[Display]] of the control use [[ctrlParent]].
|descr= Returns the parent control of a given child control. If the control is not part of a [[CT_CONTROLS_GROUP]] control then [[controlNull]] is returned. To return parent [[Display]] of the control use [[ctrlParent]].


| [[ctrlParentControlsGroup]] ctrl
|s1= [[ctrlParentControlsGroup]] ctrl


|p1= ctrl: [[Control]] - child control
|p1= ctrl: [[Control]] - child control


| [[Control]]
|r1= [[Control]]


|x1= <code>_ctrlCombo = _ctrl [[controlsGroupCtrl]] 100; {{cc|control}}
|x1= <sqf>_ctrlCombo = _ctrl controlsGroupCtrl 100; // control
[[ctrlParentControlsGroup]] _ctrlCombo; {{cc|parent control group (_ctrl)}}</code>
ctrlParentControlsGroup _ctrlCombo; // parent control group (_ctrl)</sqf>


| [[controlsGroupCtrl]], [[ctrlParent]], [[displayParent]], [[allControls]], [[allDisplays]]
|seealso= [[controlsGroupCtrl]] [[ctrlParent]] [[displayParent]] [[allControls]] [[allDisplays]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns the parent control of a given child control. If the control is not part of a CT_CONTROLS_GROUP control then controlNull is returned. To return parent Display of the control use ctrlParent.
Groups:
GUI Control

Syntax

Syntax:
ctrlParentControlsGroup ctrl
Parameters:
ctrl: Control - child control
Return Value:
Control

Examples

Example 1:
_ctrlCombo = _ctrl controlsGroupCtrl 100; // control ctrlParentControlsGroup _ctrlCombo; // parent control group (_ctrl)

Additional Information

See also:
controlsGroupCtrl ctrlParent displayParent allControls allDisplays

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