---
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: 379325
updated: 2026-10-30T23:51: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](../topics/CT_PROGRESS.md) 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)

## Community notes

**Fight9** — 2015-04-10

When used on a [CT_PROGRESS](../topics/CT_PROGRESS.md) control, remove the configured "texture" first. The two will affect each other. - Arma 3 v1.42

---

**feint** — 2018-03-04

This command can be used to change the color of the light that is illuminating a texture in a display. By default, textures are lit with white light at 100% [1,1,1,1];

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