ctrlParentControlsGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


|arma3|Game=
|arma3


|1.58|Game Version=
|1.58


|gr1= GUI Control |GROUP1=
|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]]. |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]].


| [[ctrlParentControlsGroup]] ctrl |SYNTAX=
| [[ctrlParentControlsGroup]] ctrl


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


| [[Control]] |RETURNVALUE=
| [[Control]]


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


| [[controlsGroupCtrl]], [[ctrlParent]], [[displayParent]], [[allControls]], [[allDisplays]] |SEEALSO=
| [[controlsGroupCtrl]], [[ctrlParent]], [[displayParent]], [[allControls]], [[allDisplays]]
}}
}}



Revision as of 01:30, 18 January 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

Bottom Section