---
name: "BIS_fnc_highlightControl"
type: function
status: ok
groups: ["GUI"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_highlightControl
revid: 349033
updated: 2023-11-08T14:47:13Z
---

# BIS_fnc_highlightControl

*Function · GUI · Arma 3 v1.56*

## Description

Highlights given control by drawing a border around it and letting it pulsate. The effect is visible until explicitly removed.

## Syntax

```sqf
[displayOrControl, thickness] call BIS_fnc_highlightControl
```

**Parameters:**

- `displayOrControl`: [Control](../topics/Control.md) - can be a [Control](../topics/Control.md) or a [Display](../topics/Display.md). When a display is passed as parameter, the function will delete the previously created highlight control on that given display.
- `thickness`: [Number](../topics/Number.md) - (Optional, default 20) thickness of the border

**Returns:** [Control](../topics/Control.md) - returns the created highlight control.

## Examples

### Example 1

```sqf
[findDisplay 313 displayCtrl 1023] call BIS_fnc_highlightControl;    // highlights the play button in Eden Editor
[findDisplay 313] call BIS_fnc_highlightControl;                    // removes the previously created highlight effect
```

### Example 2

```sqf
[] spawn
{
  disableSerialization;
  private _ctrlHighlight = [findDisplay 313 displayCtrl 1023),5] call BIS_fnc_highlightControl;
  sleep 2;
  ctrlDelete _ctrlHighlight;
}; // highlights the play button in Eden Editor and removes the effect after two seconds
```

<sub>Source: [BI Community Wiki — BIS fnc highlightControl](https://community.bistudio.com/wiki/BIS_fnc_highlightControl) (revision 349033).</sub>
