{"name":"BIS_fnc_highlightControl","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.56"}],"since":{"game":"arma3","name":"Arma 3","version":"1.56"},"arma3_since":"1.56","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"displayOrControl","type":"Control","optional":false,"default":null,"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.","types":["Control"],"since":null,"text":"displayOrControl: Control - 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."},{"name":"thickness","type":"Number","optional":true,"default":"20","description":"thickness of the border","types":["Number"],"since":null,"text":"thickness: Number - (Optional, default 20) thickness of the border"}],"returns":{"type":"Control","types":["Control"],"description":"returns the created highlight control.","text":"Control - 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"]},{"text":"```sqf\n[] 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\n```","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"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Introduced with Arma 3 version 1.56"],"docblock":null,"filled_from_docblock":[]}