lnbSetColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "lnbsetColumnsPos" to "lnbSetColumnsPos")
(syntax & example)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets the color of the item with the given position of the 2D listbox.
| Sets the color of the item with the given position of the 2D listbox. Color is in format [[Color]]. |= Description
<br>
Color is in format [[Color]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''lnbSetColor''' [idc,[row,column],color] |= Syntax
| [[lnbSetColor]] [idc,[row,column],color] |= Syntax


|p1= [idc,[row,column],color]: Array - |= PARAMETER1  
| p1= [idc,[row,column],color]: [[Array]] |= PARAMETER1  


|p2= |= PARAMETER2
| [[Nothing]] |= RETURNVALUE


|p3= |= PARAMETER3
____________________________________________________________________________________________


| Nothing |= RETURNVALUE
| s2= _ctrl [[lnbSetColor]] [ [row,column],color] |= Syntax


| p21= _ctrl: [[Control]]  |= PARAMETER1
| p22= [ [row,column],color]: [[Array]]  |= PARAMETER1
| r2= [[Nothing]] |= RETURNVALUE
____________________________________________________________________________________________


|x1= |= Example 1
|x1= <code>_ctrl [[lnbSetColor]] [ [0,0], [1,0,0,1] ];</code>|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 35: Line 40:
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
Arma style syntax:
// Set red color for table cell:
_ctrlTable lnbSetColor [[0,0], [1,0,0,1]]; // _ctrlTable of '''Control''' type
[[User:DenV|DenV]]
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 12:53, 9 September 2014

Hover & click on the images for description

Description

Description:
Sets the color of the item with the given position of the 2D listbox. Color is in format Color.
Groups:
Uncategorised

Syntax

Syntax:
lnbSetColor [idc,[row,column],color]
Parameters:
[idc,[row,column],color]: Array
Return Value:
Nothing

Alternative Syntax

Syntax:
_ctrl lnbSetColor [ [row,column],color]
Parameters:
_ctrl: Control
[ [row,column],color]: Array
Return Value:
Nothing

Examples

Example 1:
_ctrl lnbSetColor [ [0,0], [1,0,0,1] ];

Additional Information

See also:
lnbAddArraylnbAddColumnlnbAddRowlnbClearlnbColorlnbCurSelRowlnbDatalnbDeleteColumnlnbDeleteRowlnbGetColumnsPositionlnbPicturelnbSetColumnsPoslnbSetCurSelRowlnbSetDatalnbSetPicturelnbSetTextlnbSetValuelnbSizelnbTextlnbValue

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