---
name: "ctrlSetForegroundColor"
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/ctrlSetForegroundColor
revid: 377732
updated: 2026-01-03T00:21:53Z
---

# ctrlSetForegroundColor

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

## Description

Sets foreground color of the given control.

> [!NOTE]
> Also try [ctrlSetTextColor](../commands/ctrlSetTextColor.md), if this command doesn't have the desired effect.

## Syntax

```sqf
control ctrlSetForegroundColor color
```

**Parameters:**

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

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

## Examples

### Example 1

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

## See also

[ctrlSetTextColor](../commands/ctrlSetTextColor.md) · [ctrlSetBackgroundColor](../commands/ctrlSetBackgroundColor.md)

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