tvAdd: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>") |
||
Line 28: | Line 28: | ||
|r2= [[Number]] - Index of the added item relative to the branch it was added to | |r2= [[Number]] - Index of the added item relative to the branch it was added to | ||
|x1= <code>_index = _ctrl tvAdd [ | |x1= <code>_index = _ctrl tvAdd [[], "Parent Item"];</code> | ||
|x2= <sqf>_index = tvAdd [101, [0], "First item"];</sqf> | |x2= <sqf>_index = tvAdd [101, [0], "First item"];</sqf> |
Revision as of 10:28, 13 May 2022
{{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=
|seealso= tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetValue tvSort tvSortByValue tvValue tvText tvSetText tvSetPicture tvSetPictureColor tvSetPictureRight tvSetPictureRightColor }}