lbSetColor: Difference between revisions
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=") |
Lou Montana (talk | contribs) |
||
Line 19: | Line 19: | ||
| '''lbSetColor''' [idc, index, color] |SYNTAX= | | '''lbSetColor''' [idc, index, color] |SYNTAX= | ||
|p1= | |||
|p2= | |p1= idc: [[Number]] of control |PARAMETER1= | ||
|p3= | |||
|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: [[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| | [[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 Armed Assault|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands Armed Assault | |||
[[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
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.5
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: GUI Control
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- Scripting Commands Armed Assault
- Scripting Commands Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters