tvSetPictureRight: Difference between revisions

From Bohemia Interactive Community
m (Fix bad regex effects)
Tag: Undo
mNo edit summary
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.62


|1.62|Game version=
|gr1= GUI Control - Tree View


|gr1= GUI Control |GROUP1=
|descr= Sets right picture on the tree view item defined by path.
____________________________________________________________________________________________


| Sets right picture on the tree view item defined by path |DESCRIPTION=
|s1= [[tvSetPictureRight]] [idc, path, name]
____________________________________________________________________________________________


| [[tvSetPictureRight]] [idc, path, name] |SYNTAX=
|p1= idc: [[Number]]


| p1= idc: [[Number]] |PARAMETER1=
|p2= path: [[Tree View Path]]


| p2= path: [[Array]] - path to tree view item |PARAMETER2=
|p3= name: [[String]] - picture texture


| p3= name: [[String]] - picture texture |PARAMETER3=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|s2= control [[tvSetPictureRight]] [path, name]
____________________________________________________________________________________________


| s2= control [[tvSetPictureRight]] [path, name] |SYNTAX2=
|p21= control: [[Control]]


|p21= control: [[Control]] |PARAMETER21=
|p22= path: [[Tree View Path]]


|p22= path: [[Array]] - path to tree view item |PARAMETER22=
|p23= name: [[String]] - picture texture


|p23= name: [[String]] - picture texture |PARAMETER23=
|r2= [[Nothing]]


|r2= [[Nothing]] |RETURNVALUE2=
|x1= <sqf>tvSetPictureRight [101, [0], "picture"];</sqf>
____________________________________________________________________________________________


|x1= <code>[[tvSetPictureRight]] [101, [0], "picture"];</code> |EXAMPLE1=
|x2= <sqf>_ctrl tvSetPictureRight [[0], "picture"];</sqf>


|x2= <code>_ctrl [[tvSetPictureRight]] [<nowiki/>[0], "picture"];</code> |EXAMPLE2=
|seealso= [[tvPictureRight]] [[tvSetPicture]] [[tvPicture]]
____________________________________________________________________________________________
}}


| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvValue]], [[tvText]], [[tvSetText]], [[tvSetPicture]], [[tvSetPictureColor]], [[tvSetPictureColor]], [[tvSetPictureColorSelected]], [[tvSetPictureColorDisabled]], [[tvSetPictureRightColor]], [[tvSetPictureRightColorSelected]], [[tvSetPictureRightColorDisabled]] |SEEALSO=
{{Note
 
|user= R3vo
|  |MPBEHAVIOUR=
|timestamp= 20210405121400
____________________________________________________________________________________________
|text= {{Feature|informative|
Adding pictures to lists is very slow. In order to prevent the filling of the list to be slowed down, add the pictures in the '''scheduled''' environment.
One drawback of that method is, that sorting the entries is not easily possible.
<sqf>
private _path = _ctrlTV tvAdd [[], "Some Entry"];
[_ctrlTV, _path] spawn
{
(_this select 0) tvSetPictureRight [[_this select 1], "someImage.paa"];
};
</sqf>
}}
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
</dl>
<h3 style='display:none'>Bottom Section</h3>

Latest revision as of 02:40, 3 January 2026

Hover & click on the images for description

Description

Description:
Sets right picture on the tree view item defined by path.
Groups:
GUI Control - Tree View

Syntax

Syntax:
tvSetPictureRight [idc, path, name]
Parameters:
idc: Number
path: Tree View Path
name: String - picture texture
Return Value:
Nothing

Alternative Syntax

Syntax:
control tvSetPictureRight [path, name]
Parameters:
control: Control
path: Tree View Path
name: String - picture texture
Return Value:
Nothing

Examples

Example 1:
tvSetPictureRight [101, [0], "picture"];
Example 2:
_ctrl tvSetPictureRight [[0], "picture"];

Additional Information

See also:
tvPictureRight tvSetPicture tvPicture

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
R3vo - c
Posted on Apr 05, 2021 - 12:14 (UTC)
Adding pictures to lists is very slow. In order to prevent the filling of the list to be slowed down, add the pictures in the scheduled environment.

One drawback of that method is, that sorting the entries is not easily possible.

private _path = _ctrlTV tvAdd [[], "Some Entry"]; [_ctrlTV, _path] spawn { (_this select 0) tvSetPictureRight [[_this select 1], "someImage.paa"]; };