---
name: "lbSetTooltip"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "0.58"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lbSetTooltip
revid: 379443
updated: 2026-10-31T00:07:12Z
---

# lbSetTooltip

*Command · GUI Control - ListBox · Arma 3 v0.58*

## Description

Sets tooltip for item with given index of the listbox or combobox with id idc of the topmost user dialog to the given data.

## Syntax

### Syntax 1

```sqf
lbSetTooltip [idc, index, tooltip]
```

**Parameters:**

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

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

### Syntax 2

```sqf
control lbSetTooltip [index, tooltip]
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
lbSetTooltip [101, 1, "tooltip"];
```

### Example 2

```sqf
_control lbSetTooltip [0, "another tooltip"];
```

## See also

[lbTooltip](../commands/lbTooltip.md) · [lnbSetTooltip](../commands/lnbSetTooltip.md) · [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) · [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](../topics/CT_LISTBOX.md) command family can be found [here](../topics/CT_LISTBOX.md#scripting-example).

---

**Nelis75733126** — 2017-08-09

if you want to put linebreaks into a tooltip, use this method:

```sqf
format ["%1,%2%3", "Hi", parseText "\n", "my name is Will"];
```

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