tvSetPictureRight: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
(formatting and added a minor trick to improve speed) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|1.62 | |version1= 1.62 | ||
|gr1= GUI Control - Tree View | |gr1= GUI Control - Tree View | ||
| Sets right picture on the tree view item defined by path | |descr= Sets right picture on the tree view item defined by path. | ||
{{Feature|Informative|Adding pictures to lists is very slow due to how {{arma}} handles pictures. In order to prevent the filling of the list to be slowed down, add the pictures in the '''scheduled''' environment. | |||
<code>[[private]] _path {{=}} _ctrlTV [[tvAdd]] <nowiki>[</nowiki>[], "Some Entry"];<br>[_ctrlTV, _path] [[spawn]] {<br> (_this [[select]] 0) [[tvSetPictureRight]] <nowiki>[</nowiki>[_this [[select]] 0], "someImage.paa"];<br>};</code> | |||
}} | |||
| [[tvSetPictureRight]] [idc, path, name] | |s1= [[tvSetPictureRight]] [idc, path, name] | ||
| p1= idc: [[Number]] | |p1= idc: [[Number]] | ||
| p2= path: [[Array]] - | |p2= path: [[Array]] - Path to tree view item | ||
| p3= name: [[String]] - | |p3= name: [[String]] - Picture texture | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
| s2= control [[tvSetPictureRight]] [path, name] | |s2= control [[tvSetPictureRight]] [path, name] | ||
|p21= control: [[Control]] | |p21= control: [[Control]] | ||
|p22= path: [[Array]] - | |p22= path: [[Array]] - Path to tree view item | ||
|p23= name: [[String]] - | |p23= name: [[String]] - Picture texture | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
Line 35: | Line 38: | ||
|seealso= [[tvPictureRight]] [[tvSetPicture]] [[tvPicture]] | |seealso= [[tvPictureRight]] [[tvSetPicture]] [[tvPicture]] | ||
}} | }} | ||
Revision as of 10:05, 5 April 2021
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