lbSetColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|LBSETCOLOR]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|LBSETCOLOR]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|LBSETCOLOR]]


| ofpr |= Game name


<h2 style="color:#000066"> '''lbSetColor [''idc'', ''index'', ''color'']'''</h2>
|1.5|= Game version
____________________________________________________________________________________________


| Set colour of item with given index of listbox or combobox with id idc of topmost user [[dialog]] to color. Colour is in format [[Color]]. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''lbSetColor''' |= Syntax


'''[idc, index, color]:''' [[Array]]
|p1= [idc, index, color]: [[Array]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>lbSetColor [101, 0, [0, 1, 0, 0.5]]</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.50'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Set colour of item with given '''index''' of listbox or combobox with id '''idc''' of topmost user [[dialog]] to '''color'''.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|LBSETCOLOR]]
Colour is in format [[Color]].
[[Category:Scripting Commands OFP 1.96|LBSETCOLOR]]
 
[[Category:Scripting Commands ArmA|LBSETCOLOR]]
 
'''Example:'''
 
'''lbSetColor''' [101, 0, [0, 1, 0, 0.5]]

Revision as of 01:44, 2 August 2006

Hover & click on the images for description

Description

Description:
Set colour of item with given index of listbox or combobox with id idc of topmost user dialog to color. Colour is in format Color.
Groups:
Uncategorised

Syntax

Syntax:
lbSetColor
Parameters:
[idc, index, color]: Array
Return Value:
Nothing

Examples

Example 1:
lbSetColor [101, 0, [0, 1, 0, 0.5]]

Additional Information

See also:
See also needed

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