lbSetSelectColor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| a3 | | a3 | ||
|1.46 | |1.46 | ||
|gr1= GUI Control - ListBox | |gr1= GUI Control - ListBox | ||
|arg | |arg= | ||
|eff | |eff= | ||
| Sets the select color of the item with the given index of the listbox or combobox with id idc of the topmost user [[dialog]] to color. | | Sets the select color of the item with the given index of the listbox or combobox with id idc of the topmost user [[dialog]] to color. | ||
<br> | <br> | ||
Colour is in format [[Color|Color (RGBA)]]. | Colour is in format [[Color|Color (RGBA)]]. | ||
| [[lbSetSelectColor]] [idc, index, color] | | [[lbSetSelectColor]] [idc, index, color] | ||
|p1= [idc, index, color]: [[Array]] | |p1= [idc, index, color]: [[Array]] | ||
|p2= idc: [[Number]] of control | |p2= idc: [[Number]] of control | ||
|p3= index: [[Number]] | |p3= index: [[Number]] | ||
|p4= color: [[Color|Color (RGBA)]] | |p4= color: [[Color|Color (RGBA)]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|s2= control [[lbSetSelectColor]] [index, color] | |s2= control [[lbSetSelectColor]] [index, color] | ||
|p21= control: [[Control]] |PARAMETER21= | |p21= control: [[Control]] |PARAMETER21= | ||
Line 29: | Line 29: | ||
|p24= color: [[Color|Color (RGBA)]] |PARAMETER24= | |p24= color: [[Color|Color (RGBA)]] |PARAMETER24= | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <code>[[lbSetSelectColor]] [101, 0, [0, 1, 0, 0.5]];</code> | |x1= <code>[[lbSetSelectColor]] [101, 0, [0, 1, 0, 0.5]];</code> | ||
|x2= <code>_control [[lbSetSelectColor]] [0, [0, 1, 0, 0.5]];</code> | |x2= <code>_control [[lbSetSelectColor]] [0, [0, 1, 0, 0.5]];</code> | ||
| [[lbSetColor]],[[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] | | [[lbSetColor]],[[lbAdd]], [[lbClear]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] | ||
}} | }} |
Revision as of 01:04, 18 January 2021
Description
- Description:
- Sets the select color of the item with the given index of the listbox or combobox with id idc of the topmost user dialog to color.
Colour is in format Color (RGBA). - Groups:
- GUI Control - ListBox
Syntax
- Syntax:
- lbSetSelectColor [idc, index, color]
- Parameters:
- [idc, index, color]: Array
- idc: Number of control
- index: Number
- color: Color (RGBA)
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- control lbSetSelectColor [index, color]
- Parameters:
- control: Control
- [index, color]: Array
- index: Number
- color: Color (RGBA)
- Return Value:
- Nothing
Examples
- Example 1:
lbSetSelectColor [101, 0, [0, 1, 0, 0.5]];
- Example 2:
_control lbSetSelectColor [0, [0, 1, 0, 0.5]];
Additional Information
- See also:
- lbSetColorlbAddlbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue
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
[[Category:Introduced with a3 version 1.46]][[ Category: a3: New Scripting Commands | LBSETSELECTCOLOR]][[ Category: a3: Scripting Commands | LBSETSELECTCOLOR]]
Notes
- Posted: Sep 10 2014
- ffur2007slx2_5
- More information on the LB command family can be found here