ctrlParentControlsGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
|arma3|Game= | |arma3|Game= | ||
Line 7: | Line 6: | ||
|gr1= GUI Control |GROUP1= | |gr1= GUI Control |GROUP1= | ||
| 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]]. |DESCRIPTION= | ||
| [[ctrlParentControlsGroup]] ctrl |SYNTAX= | | [[ctrlParentControlsGroup]] ctrl |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Control]] |RETURNVALUE= | | [[Control]] |RETURNVALUE= | ||
|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> |EXAMPLE1= | ||
| [[controlsGroupCtrl]], [[ctrlParent]], [[displayParent]], [[allControls]], [[allDisplays]] |SEEALSO= | | [[controlsGroupCtrl]], [[ctrlParent]], [[displayParent]], [[allControls]], [[allDisplays]] |SEEALSO= |
Revision as of 00:44, 17 January 2021
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
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