lnbColor: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "<code>([a-zA-Z0-9_, ]+) +\[\[([a-zA-Z0-9_]+)\]\] +(\[[a-zA-Z0-9_, ]+\]);?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
mNo edit summary
Line 25: Line 25:
|p3= column: [[Number]]
|p3= column: [[Number]]


|r1= [[Array]]
|r1= [[Array]] format [[Color|Color (RGBA)]]


|s2= control [[lnbColor]] [row, column]
|s2= control [[lnbColor]] [row, column]
Line 35: Line 35:
|p23= column: [[Number]]
|p23= column: [[Number]]


|r2= [[Array]]
|r2= [[Array]] format [[Color|Color (RGBA)]]


|x1= <sqf>_ctrl lnbColor [0,0];</sqf>
|x1= <sqf>_ctrl lnbColor [0,0];</sqf>

Revision as of 11:34, 1 January 2026

Hover & click on the images for description

Description

Description:
Returns the text color of the item with the given position of the 2D listbox. The color is returned in format Color (RGBA).
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbColor [idc, [row, column]]
Parameters:
idc: Number
row: Number
column: Number
Return Value:
Array format Color (RGBA)

Alternative Syntax

Syntax:
control lnbColor [row, column]
Parameters:
control: Control
row: Number
column: Number
Return Value:
Array format Color (RGBA)

Examples

Example 1:
_ctrl lnbColor [0,0];

Additional Information

See also:
lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue

Notes

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