lbSetColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|gr1= GUI Control |GROUP1= |arg= local |Multiplayer Arguments= |eff= local |Multiplayer Effects= |gr1= GUI Control |GROUP1=" to "|arg= local |Multiplayer Arguments= |eff= local |Multiplayer Effects= |gr1= GUI Control |GROUP1=")
Line 19: Line 19:


| '''lbSetColor'''  [idc, index, color] |SYNTAX=
| '''lbSetColor'''  [idc, index, color] |SYNTAX=
|p1= [idc, index, color]: [[Array]] |PARAMETER1=
 
|p2= idc: [[Number]] of control |PARAMETER2=
|p1= idc: [[Number]] of control |PARAMETER1=
|p3= index: [[Number]] |PARAMETER3=
 
|p4= color: [[Color]] |PARAMETER4=
|p2= index: [[Number]] |PARAMETER2=
 
|p3= color: [[Color]] |PARAMETER3=
 
| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=


Line 28: Line 31:


|p21= control: [[Control]] |PARAMETER21=
|p21= control: [[Control]] |PARAMETER21=
|p22= [index, color]: [[Array]] |PARAMETER22=
|p23= index: [[Number]] |PARAMETER23=


|p24= color: [[Color]] |PARAMETER4=
|p22= index: [[Number]] |PARAMETER22=
 
|p23= color: [[Color]] |PARAMETER23=
 
|r2= [[Nothing]] |RETURNVALUE2=
|r2= [[Nothing]] |RETURNVALUE2=
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 41: Line 45:


| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbColorRight]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbPictureRight]], [[lbSelection]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetPictureRight]], [[lbSetSelected]], [[lbSetText]], [[lbSetTextRight]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] |SEEALSO=
| [[lbAdd]], [[lbClear]], [[lbColor]], [[lbColorRight]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbPictureRight]], [[lbSelection]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetPictureRight]], [[lbSetSelected]], [[lbSetText]], [[lbSetTextRight]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] |SEEALSO=
}}
}}


Line 54: Line 57:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|LBSETCOLOR]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|LBSETCOLOR]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Armed Assault|LBSETCOLOR]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 03:02, 25 September 2020

Hover & click on the images for description

Description

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.
Colour is in format Color.
Groups:
GUI Control

Syntax

Syntax:
lbSetColor [idc, index, color]
Parameters:
idc: Number of control
index: Number
color: Color
Return Value:
Nothing

Alternative Syntax

Syntax:
control lbSetColor [index, color]
Parameters:
control: Control
index: Number
color: Color
Return Value:
Nothing

Examples

Example 1:
lbSetColor [101, 0, [0, 1, 0, 0.5]];
Example 2:
_control lbSetColor [0, [0, 1, 0, 0.5]];

Additional Information

See also:
lbAddlbClearlbColorlbColorRightlbCurSellbDatalbDeletelbIsSelectedlbPicturelbPictureRightlbSelectionlbSetCurSellbSetDatalbSetPicturelbSetPictureRightlbSetSelectedlbSetTextlbSetTextRightlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue

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

Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found here

Bottom Section