tvSetColor: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| ?r2=(.*)\|RETURNVALUE= *" to " |r2=(.*)|RETURNVALUE2=") |
Lou Montana (talk | contribs) 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= | |p1= idc: [[Number]] |PARAMETER1= | ||
|p2= | |p2= path: [[Array]] - [[Tree View Path]] of the item |PARAMETER2= | ||
|p3= | |p3= color: [[Array]] - Item text color |PARAMETER3= | ||
| | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | |||
| [ | |s2= control '''tvSetColor''' [path, color] |SYNTAX2= | ||
| | |p21= control: [[Control]] |PARAMETER21= | ||
| | |p22= path: [[Array]] - [[Tree View Path]] of the item |PARAMETER22= | ||
| | |p23= color: [[Array]] - item text color in format [r,g,b,a] |PARAMETER23= | ||
|r2= | |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> | ||
Revision as of 21:29, 24 September 2020
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