---
name: "lbSetPictureColor"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "1.22"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lbSetPictureColor
revid: 377805
updated: 2026-01-03T04:08:03Z
---

# lbSetPictureColor

*Command · GUI Control - ListBox · Arma 3 v1.22*

## Description

Sets the color of item's picture (left) with the given index of the listbox with id idc of the topmost user dialog to the given color. Color is in format [Color (RGBA)](../topics/Color.md). Color which consists from only zeros means disable this override.

## Syntax

### Syntax 1

```sqf
lbSetPictureColor [idc, index, color]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `index`: [Number](../topics/Number.md)
- `color`: [Color (RGBA)](../topics/Color.md)

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

### Syntax 2

```sqf
control lbSetPictureColor [index, color]
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
lbSetPictureColor [101, 0, [0, 1, 0, 0.5]];
```

### Example 2

```sqf
_ctrl lbSetPictureColor [0, [1, 1, 1, 1]];
```

## See also

[lbSetPictureColorSelected](../commands/lbSetPictureColorSelected.md) · [lbPicture](../commands/lbPicture.md) · [lbSetColor](../commands/lbSetColor.md) · [lbSetPicture](../commands/lbSetPicture.md) · [lbSetPictureRightColor](../commands/lbSetPictureRightColor.md) · [lbSetPictureRight](../commands/lbSetPictureRight.md)

## Community notes

**ffur2007slx2_5** — 2014-09-10

More information on the CT_LISTBOX command family can be found here.

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