tvSetText: 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>tvSetText [101, [0], "Test data"];</sqf>
|x1= <sqf>tvSetText [101, [0], "Test data"];</sqf>


|x2= <code>_ctrl tvSetText [<nowiki/>[0,0,0], "Test data"];</code>
|x2= <code>_ctrl tvSetText [[0,0,0], "Test data"];</code>


|seealso= [[tvAdd]] [[tvClear]] [[tvCollapse]] [[tvCount]] [[tvCurSel]] [[tvData]] [[tvDelete]] [[tvExpand]] [[tvPicture]] [[tvSetCurSel]] [[tvSetPicture]] [[tvSetValue]] [[tvSort]] [[tvSortByValue]] [[tvText]] [[tvValue]]
|seealso= [[tvAdd]] [[tvClear]] [[tvCollapse]] [[tvCount]] [[tvCurSel]] [[tvData]] [[tvDelete]] [[tvExpand]] [[tvPicture]] [[tvSetCurSel]] [[tvSetPicture]] [[tvSetValue]] [[tvSort]] [[tvSortByValue]] [[tvText]] [[tvValue]]
}}
}}

Revision as of 11:28, 13 May 2022

{{RV|type=command

|game1= arma3 |version1= 1.56

|gr1= GUI Control - Tree View

|descr= Sets string text to item on given path. IDC means id of parent Tree View.

|s1= tvSetText [idc, path, text]

|p1= idc: Number

|p2= path: Array of Numbers

|p3= text: String

|r1= Nothing

|s2= control tvSetText [path, text]

|p21= control: Control

|p22= path: Array of Numbers

|p23= text: String

|r2= Nothing

|x1=

tvSetText [101, [0], "Test data"];

|x2= _ctrl tvSetText [[0,0,0], "Test data"];

|seealso= tvAdd tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetPicture tvSetValue tvSort tvSortByValue tvText tvValue }}