tvSetPictureRight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Line 30: Line 30:
|x1= <sqf>tvSetPictureRight [101, [0], "picture"];</sqf>
|x1= <sqf>tvSetPictureRight [101, [0], "picture"];</sqf>


|x2= <code>_ctrl tvSetPictureRight [<nowiki/>[0], "picture"];</code>
|x2= <code>_ctrl tvSetPictureRight [[0], "picture"];</code>


|seealso= [[tvPictureRight]] [[tvSetPicture]] [[tvPicture]]
|seealso= [[tvPictureRight]] [[tvSetPicture]] [[tvPicture]]

Revision as of 10:28, 13 May 2022

{{RV|type=command

|game1= arma3 |version1= 1.62

|gr1= GUI Control - Tree View

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

|s1= tvSetPictureRight [idc, path, name]

|p1= idc: Number

|p2= path: Array - Path to tree view item

|p3= name: String - Picture texture

|r1= Nothing

|s2= control tvSetPictureRight [path, name]

|p21= control: Control

|p22= path: Array - Path to tree view item

|p23= name: String - Picture texture

|r2= Nothing

|x1=

tvSetPictureRight [101, [0], "picture"];

|x2= _ctrl tvSetPictureRight [[0], "picture"];

|seealso= tvPictureRight tvSetPicture tvPicture }}

Posted on April 5, 2021 - 12:14 (UTC)
R3vo
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"];
};