Arma 3 Scripting

lbSetColor

  • Local argument
  • Local effect
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.75

Command · Markdown · JSON · original wiki page

Description

Sets the color of the item (left) with the given index of the listbox or combobox with id idc of the topmost user Dialog to color.

Syntax

Syntax 1

lbSetColor [idc, index, color]

Parameters:

Returns: Nothing

Syntax 2

control lbSetColor [index, color]

Parameters:

Returns: Nothing

Examples

Example 1

lbSetColor [101, 0, [0, 1, 0, 0.5]];

Example 2

_control lbSetColor [0, [0, 1, 0, 0.5]];

See also

lbColor · lbSetColorRight · lbColorRight

Community notes

ffur2007slx2_5

More information on the CT_LISTBOX command family can be found here.