tvSetPictureRight

From Bohemia Interactive Community
Revision as of 11:28, 13 May 2022 by Lou Montana (talk | contribs) (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Jump to navigation Jump to search

{{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"];
};