---
name: "ctrlSetBackgroundColor"
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/ctrlSetBackgroundColor
revid: 377733
updated: 2026-01-03T00:21:54Z
---

# ctrlSetBackgroundColor

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

## Description

Sets background color of given control. Only affects:
- CT_COMBO
- CT_STATIC
- CT_STRUCTURED_TEXT
- CT_MAP
- CT_MAP_MAIN
- Arma 3 v2.02 CT_BUTTON
- Arma 3 v2.02 CT_SHORTCUTBUTTON
- Arma 3 v2.02 CT_ACTIVETEXT

## Syntax

```sqf
control ctrlSetBackgroundColor color
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_control ctrlSetBackgroundColor [1, 0, 0, 1];
```

## 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)

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