tvSetColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=")
m (Fix bad regex effects)
Tag: Undo
Line 7: Line 7:


|gr1= GUI Control |GROUP1=
|gr1= GUI Control |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 14:
| '''tvSetColor''' [idc, path, color] |SYNTAX=
| '''tvSetColor''' [idc, path, color] |SYNTAX=


|p1= [idc, path, color]: [[Array]] |PARAMETER1=  
|p1= idc: [[Number]] |PARAMETER1=


|p2= idc: [[Number]] |PARAMETER2=  
|p2= path: [[Array]] - [[Tree View Path]] of the item |PARAMETER2=


|p3= path: [[Array]] - [[Tree View Path]] of the item |PARAMETER3=  
|p3= color: [[Array]] - Item text color |PARAMETER3=


|p4= color: [[Array]] - Item text color |PARAMETER3=  
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________


| [[Nothing]] |RETURNVALUE=  
|s2= control '''tvSetColor''' [path, color] |SYNTAX2=
____________________________________________________________________________________________


| s2= control '''tvSetColor''' [path, color] |SYNTAX2=
|p21= control: [[Control]] |PARAMETER21=


|p21= control: [[Control]] |PARAMETER1=  
|p22= path: [[Array]] - [[Tree View Path]] of the item |PARAMETER22=


| p22= path: [[Array]] - [[Tree View Path]] of the item |PARAMETER2=
|p23= color: [[Array]] - item text color in format [r,g,b,a] |PARAMETER23=
| p23= color: [[Array]] - Item text color |PARAMETER2=  


|r2=(.*)|RETURNVALUE2=  
|r2= [[Nothing]] |RETURNVALUE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[tvSetColor]] [101, [0,0], [1,0,0,1]];</code> |EXAMPLE1=
|x1= <code>[[tvSetColor]] [101, [0,0], [1,0,0,1]];</code> |EXAMPLE1=
Line 46: Line 41:
| [[tvDelete]], [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO=
| [[tvDelete]], [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO=


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}
Line 56: Line 51:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Revision as of 21:29, 24 September 2020

Hover & click on the images for description

Description

Description:
Sets text color on given Tree View Item
Groups:
GUI Control

Syntax

Syntax:
tvSetColor [idc, path, color]
Parameters:
idc: Number
path: Array - Tree View Path of the item
color: Array - Item text color
Return Value:
Nothing

Alternative Syntax

Syntax:
control tvSetColor [path, color]
Parameters:
control: Control
path: Array - Tree View Path of the item
color: Array - item text color in format [r,g,b,a]
Return Value:
Nothing

Examples

Example 1:
tvSetColor [101, [0,0], [1,0,0,1]];
Example 2:
_ctrl tvSetColor [[0,0], [1,0,0,1]];

Additional Information

See also:
tvDeletetvAddtvCleartvCollapsetvCounttvCurSeltvDatatvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue

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