tvAdd

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= 0.74

|gr1= GUI Control - Tree View

|descr= Adds an item with given text to Tree View control. The position on Tree View where to add the item and the actual path to this item once added are different. If item is added to existing item, then parent item path is used. If no parent exists, empty array [] is used. See Tree View Path for more information.

|s1= tvAdd [idc, pathParent, text]

|p1= idc: Number

|p2= pathParent: Array - Tree View Path of parent item or [] if no parent exists

|p3= text: String

|r1= Number - Index of the added item relative to the branch it was added to

|s2= control tvAdd [pathParent, text]

|p21= control: Control

|p22= pathParent: Array - Tree View Path of parent item or [] if no parent exists

|p23= text: String

|r2= Number - Index of the added item relative to the branch it was added to

|x1= _index = _ctrl tvAdd [[], "Parent Item"];

|x2=

_index = tvAdd [101, [0], "First item"];

|seealso= tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetValue tvSort tvSortByValue tvValue tvText tvSetText tvSetPicture tvSetPictureColor tvSetPictureRight tvSetPictureRightColor }}