---
name: "lbSetPictureRight"
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/lbSetPictureRight
revid: 377810
updated: 2026-01-03T04:08:11Z
---

# lbSetPictureRight

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

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

## Description

Sets the second (right aligned) picture in the item with the given index of the listbox or combobox with id idc of the topmost user [dialog](../commands/dialog.md). Name is the picture name.
The picture is searched for in the mission directory, the dtaExt subdirectory of the campaign directory and the dtaExt directory and the data bank (or directory).

In Arma 3 it might be necessary to set the color of the picture as well with [lbSetPictureRightColor](../commands/lbSetPictureRightColor.md) as default [0,0,0,0] color makes the picture invisible.

> [!NOTE]
> When trying to select a listBox entry by clicking at the right picture, the control in the background is focused. It seems the width of the control is not extended by adding a right picture.

## Syntax

### Syntax 1

```sqf
lbSetPictureRight [idc, index, path]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `index`: [Number](../topics/Number.md)
- `path`: [String](../topics/String.md)

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

### Syntax 2

```sqf
control lbSetPictureRight [index, path]
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `index`: [Number](../topics/Number.md)
- `path`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
lbSetPictureRight [101, 0, "a3\3den\data\cfg3den\history\createcomment_ca.paa"];
```

### Example 2

```sqf
_control lbSetPictureRight [0, "a3\3den\data\cfg3den\history\createcomment_ca.paa"];
```

## See also

[lbPicture](../commands/lbPicture.md) · [lbSetPicture](../commands/lbSetPicture.md) · [lbSetPictureColor](../commands/lbSetPictureColor.md)

## Community notes

**Ffur2007slx2_5** — 2014-09-10

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

---

**R3vo** — 2021-04-06

Adding pictures to lists is very slow. In order to prevent the filling of the list to be slowed down, add the pictures in the **scheduled** environment.
One drawback of that method is, that sorting the entries is not easily possible.

```sqf
private _path = _ctrlTV tvAdd [[], "Some Entry"];
[_ctrlTV, _path] spawn {
    (_this select 0) tvSetPictureRight [[_this select 1], "someImage.paa"];
};
```

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