---
name: "lbSetColorRight"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/lbSetColorRight
revid: 377346
updated: 2026-01-02T06:40:03Z
---

# lbSetColorRight

*Command · GUI Control - ListBox · Arma 3 v0.50 · introduced in Operation Flashpoint vNone*

Locality: arguments **local** · effect **local**

## Description

Sets the color of the item (right) with the given index of the listbox or combobox with id idc of the topmost user [dialog](../commands/dialog.md) to color.

## Syntax

### Syntax 1

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

### Example 2

```sqf
_control lbSetColorRight [0, [0, 1, 0, 0.5]];
```

## 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) · [lbSetPicture](../commands/lbSetPicture.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)

## Community notes

**ffur2007slx2_5** — 2014-09-10

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

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