{"name":"ctrlSetTextColor","title":"ctrlSetTextColor","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetTextColor","revid":379325,"updated":"2026-10-30T23:51:30Z","groups":["GUI Control"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Sets text color of given control. As of Arma 3 v1.40 this command can also be used to change fill-color of a CT_PROGRESS control.\n\n> [!NOTE]\n> Also try ctrlSetForegroundColor, if this command doesn't have the desired effect.","syntaxes":[{"syntax":"control ctrlSetTextColor color","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"color","type":"Color (RGBA)","type_expr":"Color"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"color"}}],"examples":[{"code":["_control ctrlSetTextColor [1, 0, 0, 1];"]}],"see_also":["ctrlSetForegroundColor","ctrlTextColor","ctrlSetText"],"notes":[{"user":"Fight9","date":"2015-04-10T06:47:00Z","text":"When used on a CT_PROGRESS control, remove the configured \"texture\" first. The two will affect each other. - Arma 3 v1.42"},{"user":"feint","date":"2018-03-04T22:57:00Z","text":"This command can be used to change the color of the light that is illuminating a texture in a display. By default, textures are lit with white light at 100% [1,1,1,1];"}]}