{"name":"BIS_fnc_highlightControl","title":"BIS fnc highlightControl","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_highlightControl","revid":349033,"updated":"2023-11-08T14:47:13Z","groups":["GUI"],"status":"ok","games":{"arma3":"1.56"},"since":"arma3 1.56","arma3_since":"1.56","description":"Highlights given control by drawing a border around it and letting it pulsate. The effect is visible until explicitly removed.","syntaxes":[{"syntax":"[displayOrControl, thickness] call BIS_fnc_highlightControl","params":[{"name":"displayOrControl","type":"Control","description":"can be a Control or a Display. When a display is passed as parameter, the function will delete the previously created highlight control on that given display.","type_expr":"Control"},{"name":"thickness","type":"Number","optional":true,"default":"20","description":"thickness of the border","type_expr":"Number","text":"thickness: Number - (Optional, default 20) thickness of the border"}],"returns":{"type":"Control","type_expr":"Control","description":"returns the created highlight control."}}],"examples":[{"text":"```sqf\n[findDisplay 313 displayCtrl 1023] call BIS_fnc_highlightControl;    // highlights the play button in Eden Editor\n[findDisplay 313] call BIS_fnc_highlightControl;                    // removes the previously created highlight effect\n```","code":["[findDisplay 313 displayCtrl 1023] call BIS_fnc_highlightControl;\t// highlights the play button in Eden Editor\n[findDisplay 313] call BIS_fnc_highlightControl;\t\t\t\t\t// removes the previously created highlight effect"]},{"code":["[] spawn\n{\n  disableSerialization;\n  private _ctrlHighlight = [findDisplay 313 displayCtrl 1023),5] call BIS_fnc_highlightControl;\n  sleep 2;\n  ctrlDelete _ctrlHighlight;\n}; // highlights the play button in Eden Editor and removes the effect after two seconds"]}]}