tvSetPictureRight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.61|= Game version ______________...")
 
m (Some wiki formatting)
 
(42 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.61|= Game version
|gr1= GUI Control - Tree View
____________________________________________________________________________________________


| Sets right picture on the tree view item defined by path |= Description
|descr= Sets right picture on the tree view item defined by path.
____________________________________________________________________________________________


| [[tvSetPictureRight]] [idc, path, name] |= Syntax
|s1= [[tvSetPictureRight]] [idc, path, name]


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


| p2= idc: [[Number]] |= PARAMETER2
|p2= path: [[Array]] - path to tree view item


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


| p4= name: [[String]] - picture texture |= PARAMETER4
|r1= [[Nothing]]


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


____________________________________________________________________________________________
|p21= control: [[Control]]


| s2= control [[tvSetPictureRight]] [path, name] |= Syntax
|p22= path: [[Array]] - path to tree view item


| p21= control: [[Control]] |= PARAMETER1
|p23= name: [[String]] - picture texture


| p22= [path, name]: [[Array]] |= PARAMETER2
|r2= [[Nothing]]


| p23= path: [[Array]] - path to tree view item |= PARAMETER3
|x1= <sqf>tvSetPictureRight [101, [0], "picture"];</sqf>


| p24= name: [[String]] - picture texture |= PARAMETER4
|x2= <sqf>_ctrl tvSetPictureRight [[0], "picture"];</sqf>


| r2= [[Nothing]] |= RETURNVALUE
|seealso= [[tvPictureRight]] [[tvSetPicture]] [[tvPicture]]
____________________________________________________________________________________________
}}


|x1= <code>[[tvSetPictureRight]] [101, [0], "picture"];</code> |= Example 1
{{Note
 
|user= R3vo
|x2= <code>_ctrl [[tvSetPictureRight]] <nowiki>[</nowiki>[0], "picture"];</code> |= Example 2
|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.
| [[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]] |= See Also
One drawback of that method is, that sorting the entries is not easily possible.
 
<sqf>
|  |= MPBEHAVIOUR
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>
[[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}}}}]]

Latest revision as of 20:59, 17 April 2024

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: Array - path to tree view item
name: String - picture texture
Return Value:
Nothing

Alternative Syntax

Syntax:
control tvSetPictureRight [path, name]
Parameters:
control: Control
path: Array - path to tree view item
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 or on the Forums.
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"]; };