ctrlSetBackgroundColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Description format and missing ; in example)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets background color of given control. Only affects [[CT_COMBO]], [[CT_STATIC]], [[CT_STRUCTURED_TEXT]], [[CT_MAP]] and [[CT_MAP_MAIN]].
| Sets background color of given control. Only affects:
{{Feature|arma3|Since Arma 3 v2.01.146630 [[CT_BUTTON]], [[CT_SHORTCUTBUTTON]] and [[CT_ACTIVETEXT]] controls are also supported.}} |DESCRIPTION=
* [[CT_COMBO]]
* [[CT_STATIC]]
* [[CT_STRUCTURED_TEXT]]
* [[CT_MAP]]
* [[CT_MAP_MAIN]]
* [[CT_BUTTON]] {{since|arma3|2.01}}
* [[CT_SHORTCUTBUTTON]] {{since|arma3|2.01}}
* [[CT_ACTIVETEXT]] {{since|arma3|2.01}} |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 22: Line 29:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_control [[ctrlSetBackgroundColor]] [1, 0, 0, 1]</code> |EXAMPLE1=
|x1= <code>_control [[ctrlSetBackgroundColor]] [1, 0, 0, 1];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 19:53, 11 January 2021

Hover & click on the images for description

Description

Description:
Sets background color of given control. Only affects:
Groups:
GUI Control

Syntax

Syntax:
control ctrlSetBackgroundColor color
Parameters:
control: Control
color: Array (format Color (RGBA))
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetBackgroundColor [1, 0, 0, 1];

Additional Information

See also:
allControlsallDisplayscontrolsGroupCtrlctrlDeletectrlModelctrlSetModelctrlPositionctrlSetPositionctrlClassNamectrlModelScalectrlSetModelScalectrlModelDirAndUpctrlSetModelDirAndUpdisplayParent

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section