ctrlParentControlsGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|=GROUP1" to "|GROUP1=")
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


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


|1.58|Game Version=
|gr1= GUI Control


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


| Returns the parent control of a given child control. If the control is not part of a [[DialogControls-ControlsGroup|CT_CONTROLS_GROUP]] control then [[controlNull]] is returned. |DESCRIPTION=
|s1= [[ctrlParentControlsGroup]] ctrl
____________________________________________________________________________________________


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


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


| [[Control]] |RETURNVALUE=
|x1= <sqf>
____________________________________________________________________________________________
_ctrlCombo = _ctrl controlsGroupCtrl 100; // control
ctrlParentControlsGroup _ctrlCombo; // parent control group (_ctrl)
</sqf>


|x1= <code>_ctrlCombo = _ctrl [[controlsGroupCtrl]] 100; {{cc|control}}
|seealso= [[controlsGroupCtrl]] [[ctrlParent]] [[displayParent]] [[allControls]] [[allDisplays]]
[[ctrlParentControlsGroup]] _ctrlCombo; {{cc|parent control group (_ctrl)}}</code> |EXAMPLE1=
____________________________________________________________________________________________
 
| [[controlsGroupCtrl]], [[ctrlParent]], [[displayParent]], [[allControls]], [[allDisplays]] |SEEALSO=
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:43, 3 September 2024

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