---
name: "lbSetPictureColorSelected"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "1.20"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lbSetPictureColorSelected
revid: 377357
updated: 2026-01-02T06:40:23Z
---

# lbSetPictureColorSelected

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

## Description

Sets the selected 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
lbSetPictureColorSelected [idc, index, color]
```

**Parameters:**

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

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

### Syntax 2

```sqf
control lbSetPictureColorSelected [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
lbSetPictureColorSelected [101, 0, [0, 1, 0, 0.5]];
```

### Example 2

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

## See also

[lbAdd](../commands/lbAdd.md) · [lbClear](../commands/lbClear.md) · [lbColor](../commands/lbColor.md) · [lbCurSel](../commands/lbCurSel.md) · [lbData](../commands/lbData.md) · [lbDelete](../commands/lbDelete.md) · [lbIsSelected](../commands/lbIsSelected.md) · [lbPicture](../commands/lbPicture.md) · [lbSelection](../commands/lbSelection.md) · [lbSetColor](../commands/lbSetColor.md) · [lbSetCurSel](../commands/lbSetCurSel.md) · [lbSetData](../commands/lbSetData.md) · [lbSetSelected](../commands/lbSetSelected.md) · [lbSetTooltip](../commands/lbSetTooltip.md) · [lbSetValue](../commands/lbSetValue.md) · [lbSize](../commands/lbSize.md) · [lbSort](../commands/lbSort.md) · [lbSortByValue](../commands/lbSortByValue.md) · [lbText](../commands/lbText.md) · [lbValue](../commands/lbValue.md) · [lbSetPicture](../commands/lbSetPicture.md) · [lbSetPictureColor](../commands/lbSetPictureColor.md) · [lbSetPictureColorDisabled](../commands/lbSetPictureColorDisabled.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 — lbSetPictureColorSelected](https://community.bistudio.com/wiki/lbSetPictureColorSelected) (revision 377357).</sub>
