{"name":"ctrlSetForegroundColor","title":"ctrlSetForegroundColor","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetForegroundColor","revid":377732,"updated":"2026-01-03T00:21:53Z","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 foreground color of the given control.\n\n> [!NOTE]\n> Also try ctrlSetTextColor, if this command doesn't have the desired effect.","syntaxes":[{"syntax":"control ctrlSetForegroundColor 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 ctrlSetForegroundColor [1, 0, 0, 1];"]}],"see_also":["ctrlSetTextColor","ctrlSetBackgroundColor"]}