---
name: "ctrlSetScale"
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/ctrlSetScale
revid: 369376
updated: 2024-09-03T18:43:13Z
---

# ctrlSetScale

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

## Description

Sets scale of a control. Top left corner remains same. This command requires [ctrlCommit](../commands/ctrlCommit.md).

## Syntax

```sqf
control ctrlSetScale scale
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `scale`: [Number](../topics/Number.md) - scale e.g. 2 = 200% in size

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

## Examples

### Example 1

```sqf
_control ctrlSetScale 0.5;// Makes the control 50% smaller
_control ctrlCommit 0;
```

## See also

[ctrlScale](../commands/ctrlScale.md) · [ctrlModelScale](../commands/ctrlModelScale.md) · [ctrlSetModelScale](../commands/ctrlSetModelScale.md)

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