ctrlParentControlsGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) 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...) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{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= < | |x1= <sqf> | ||
_ctrlCombo = _ctrl controlsGroupCtrl 100; // control | |||
ctrlParentControlsGroup _ctrlCombo; // parent control group (_ctrl) | |||
</sqf> | |||
| [[controlsGroupCtrl]] | |seealso= [[controlsGroupCtrl]] [[ctrlParent]] [[displayParent]] [[allControls]] [[allDisplays]] | ||
}} | }} | ||
Latest revision as of 19:43, 3 September 2024
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