---
name: "ctrlPosition"
type: command
status: ok
groups: ["GUI Control - Positioning"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlPosition
revid: 377302
updated: 2026-01-02T06:38:20Z
---

# ctrlPosition

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

## Description

Returns the current position of 2D control as `[x, y, w, h]` array. For 3D control it returns relative `[x, z, y]`.

If the control is within a CT_CONTROLS_GROUP, the returned position will be relative to the group's position.

If the control is a CT_CONTROLS_TABLE header or row the returned position is relative to the table's position.

## Syntax

```sqf
ctrlPosition controlName
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) format `[x, y, w, h]` (2D) or `[x, z, y]` (3D)

## Examples

### Example 1

```sqf
_pos = ctrlPosition _control;
```

## See also

[ctrlCreate](../commands/ctrlCreate.md) · [ctrlDelete](../commands/ctrlDelete.md) · [ctrlModel](../commands/ctrlModel.md) · [ctrlSetModel](../commands/ctrlSetModel.md) · [ctrlSetPosition](../commands/ctrlSetPosition.md) · [ctrlClassName](../commands/ctrlClassName.md) · [displayCtrl](../commands/displayCtrl.md) · [ctrlModelScale](../commands/ctrlModelScale.md) · [ctrlSetModelScale](../commands/ctrlSetModelScale.md) · [ctrlModelDirAndUp](../commands/ctrlModelDirAndUp.md) · [ctrlSetModelDirAndUp](../commands/ctrlSetModelDirAndUp.md)

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