ctrlParentControlsGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
m (Text replacement - "\|s1= +" to "|s1= ")
Line 8: Line 8:
|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]].
|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]].


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


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

Revision as of 16:39, 19 June 2021

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:
controlsGroupCtrlctrlParentdisplayParentallControlsallDisplays

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