---
name: "lnbSetTooltip"
type: command
status: ok
groups: ["GUI Control - ListNBox"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lnbSetTooltip
revid: 349264
updated: 2023-11-08T14:51:08Z
---

# lnbSetTooltip

*Command · GUI Control - ListNBox · Arma 3 v1.94*

## Description

Sets tooltip on the item with the given row and column of CT_LISTNBOX.

> [!IMPORTANT]
> By default, tooltips are added for all columns no matter what column index is provided.
> This behaviour can be overwritten since Arma 3 v2.02 by setting the control's property `tooltipPerColumn` to [true](../commands/true.md).
> See CT_LISTNBOX documentation.

## Syntax

### Syntax 1

```sqf
lnbSetTooltip [idc, [row, column], text]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md) - control's IDC
- `row`: [Number](../topics/Number.md) - row where the tooltip should be shown
- `column`: [Number](../topics/Number.md) - column where tooltip should be shown. By default it is set for every column, see description
- `text`: [String](../topics/String.md) - tooltip text

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

### Syntax 2

```sqf
ctrl lnbSetTooltip [[row, column], text]
```

**Parameters:**

- `ctrl`: [Control](../topics/Control.md) - control
- `row`: [Number](../topics/Number.md) - row where the tooltip should be shown
- `column`: [Number](../topics/Number.md) - column where tooltip should be shown. By default it is set for every column, see description
- `text`: [String](../topics/String.md) - tooltip text

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

## Examples

### Example 1

```sqf
lnbSetTooltip [1234, [1,0], "tip"];
```

### Example 2

```sqf
_ctrl lnbSetTooltip [[3,0], "top"];
```

## See also

[lbSetTooltip](../commands/lbSetTooltip.md) · [lnbSetData](../commands/lnbSetData.md) · [lnbAddArray](../commands/lnbAddArray.md) · [lnbAddColumn](../commands/lnbAddColumn.md) · [lnbAddRow](../commands/lnbAddRow.md) · [lnbClear](../commands/lnbClear.md) · [lnbColor](../commands/lnbColor.md) · [lnbCurSelRow](../commands/lnbCurSelRow.md) · [lnbData](../commands/lnbData.md) · [lnbDeleteColumn](../commands/lnbDeleteColumn.md) · [lnbDeleteRow](../commands/lnbDeleteRow.md) · [lnbGetColumnsPosition](../commands/lnbGetColumnsPosition.md) · [lnbPicture](../commands/lnbPicture.md) · [lnbSetColor](../commands/lnbSetColor.md) · [lnbSetColumnsPos](../commands/lnbSetColumnsPos.md) · [lnbSetCurSelRow](../commands/lnbSetCurSelRow.md) · [lnbSetPicture](../commands/lnbSetPicture.md) · [lnbSetText](../commands/lnbSetText.md) · [lnbSetValue](../commands/lnbSetValue.md) · [lnbSize](../commands/lnbSize.md) · [lnbText](../commands/lnbText.md) · [lnbValue](../commands/lnbValue.md)

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