---
name: "ctrlParent"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlParent
revid: 310860
updated: 2022-05-07T20:24:09Z
---

# ctrlParent

*Command · GUI Control · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Returns the parent [Display](../topics/Display.md) of the given control. For parent [Control](../topics/Control.md)s group see [ctrlParentControlsGroup](../commands/ctrlParentControlsGroup.md).

## Syntax

```sqf
ctrlParent control
```

**Parameters:**

- `control`: [Control](../topics/Control.md)

**Returns:** [Display](../topics/Display.md)

## Examples

### Example 1

```sqf
_display = ctrlParent _control;
```

## See also

[allControls](../commands/allControls.md) · [allDisplays](../commands/allDisplays.md) · [controlsGroupCtrl](../commands/controlsGroupCtrl.md) · [ctrlDelete](../commands/ctrlDelete.md) · [ctrlModel](../commands/ctrlModel.md) · [ctrlSetModel](../commands/ctrlSetModel.md) · [ctrlPosition](../commands/ctrlPosition.md) · [ctrlSetPosition](../commands/ctrlSetPosition.md) · [ctrlClassName](../commands/ctrlClassName.md) · [ctrlModelScale](../commands/ctrlModelScale.md) · [ctrlSetModelScale](../commands/ctrlSetModelScale.md) · [ctrlModelDirAndUp](../commands/ctrlModelDirAndUp.md) · [ctrlSetModelDirAndUp](../commands/ctrlSetModelDirAndUp.md) · [displayParent](../commands/displayParent.md) · [ctrlParentControlsGroup](../commands/ctrlParentControlsGroup.md)

<sub>Source: [BI Community Wiki — ctrlParent](https://community.bistudio.com/wiki/ctrlParent) (revision 310860).</sub>
