---
name: "ctrlSetTextColor"
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/ctrlSetTextColor
revid: 377177
updated: 2026-01-01T10:47:30Z
---

# ctrlSetTextColor

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

## Description

Sets text color of given control. As of Arma 3 v1.40 this command can also be used to change fill-color of a CT_PROGRESS control.

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

## Syntax

```sqf
control ctrlSetTextColor color
```

**Parameters:**

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

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

## Examples

### Example 1

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

## See also

[ctrlSetForegroundColor](../commands/ctrlSetForegroundColor.md) · [ctrlTextColor](../commands/ctrlTextColor.md) · [ctrlSetText](../commands/ctrlSetText.md)

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