tvSetPictureColor: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command|=" to "{{Command|Comments=")
m (Some wiki formatting)
 
(49 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game
|game1= arma3
|version1= 0.74


|0.74|Game Version=
|arg= local
|eff= local


|arg= local |Multiplayer Arguments=
|gr1= GUI Control - Tree View


|eff= local |Multiplayer Effects=
|descr= Sets the colour of the picture (set via [[tvSetPicture]]) under the specified tree view path.


|exec= |= Multiplayer Execution
|s1= [[tvSetPictureColor]] [idc, path, color]
____________________________________________________________________________________________


| Sets the colour of the picture (set via [[tvSetPicture]]) under the specified tree view path. |DESCRIPTION=
|p1= idc: [[Number]] - IDC of the tree view control
____________________________________________________________________________________________


| [[tvSetPictureColor]] [idc, path, color] |SYNTAX=
|p2= path: [[Array]] - array containing path numbers


|p1= idc: [[Number]] - IDC of the tree view control. |PARAMETER1=
|p3= color: [[Color|Color (RGBA)]]


|p2= path: [[Array]] - Array containing path numbers. |PARAMETER2=
|r1= [[Nothing]]


|p3= color: [[Color]] |PARAMETER3=
|s2= ctrl [[tvSetPictureColor]] [path, color]


| [[Nothing]] |RETURNVALUE=
|p21= ctrl: [[Control]]


|p22= path: [[Array]] - array containing path numbers


<!-- START alternative syntax (optional) -->
|p23= color: [[Color|Color (RGBA)]]


|s2= ctrl [[tvSetPictureColor]] [path, color] |= Alternative Syntax
|r2= [[Nothing]]


|p21= ctrl: [[Control]] |= Alternative Parameter 1
|x1= <sqf>tvSetPictureColor [101, [0,2], [1,0,1,1]];</sqf>


|p22= path: [[Array]] - Array containing path numbers. |= Alternative Parameter 2
|x2= <sqf>_tree tvSetPictureColor [[0,2], [1,0,1,1]];</sqf>
 
|p23= color: [[Color]] |= Alternative Parameter 3
 
|r2= [[Nothing]] |= Alternative Return Value
 
____________________________________________________________________________________________
 
|x1= <code>[[tvSetPictureColor]] [101, [0,2], [1,0,1,1]];</code> |EXAMPLE1=
____________________________________________________________________________________________
 
|x2= <code>_tree [[tvSetPictureColor]] [[0,2], [1,0,1,1]];</code> |EXAMPLE2=
____________________________________________________________________________________________
 
|mp= - |Multiplayer Behaviour=
 
| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO=


|seealso= [[tvAdd]] [[tvClear]] [[tvCollapse]] [[tvCount]] [[tvCurSel]] [[tvData]] [[tvDelete]] [[tvExpand]] [[tvPicture]] [[tvSetCurSel]] [[tvSetData]] [[tvSetPicture]] [[tvSetValue]] [[tvSort]] [[tvSortByValue]] [[tvText]] [[tvValue]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">'''[[User:User Name|User Name]]'''</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]

Latest revision as of 17:23, 15 August 2022

Hover & click on the images for description

Description

Description:
Sets the colour of the picture (set via tvSetPicture) under the specified tree view path.
Groups:
GUI Control - Tree View

Syntax

Syntax:
tvSetPictureColor [idc, path, color]
Parameters:
idc: Number - IDC of the tree view control
path: Array - array containing path numbers
color: Color (RGBA)
Return Value:
Nothing

Alternative Syntax

Syntax:
ctrl tvSetPictureColor [path, color]
Parameters:
ctrl: Control
path: Array - array containing path numbers
color: Color (RGBA)
Return Value:
Nothing

Examples

Example 1:
tvSetPictureColor [101, [0,2], [1,0,1,1]];
Example 2:
_tree tvSetPictureColor [[0,2], [1,0,1,1]];

Additional Information

See also:
tvAdd tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetPicture tvSetValue tvSort tvSortByValue tvText tvValue

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