tvAdd
Jump to navigation
Jump to search
Description
- Description:
- 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.
- Groups:
- GUI Control - Tree View
Syntax
- Syntax:
- tvAdd [idc, pathParent, text]
- Parameters:
- idc: Number
- pathParent: Array - Tree View Path of parent item or [] if no parent exists
- text: String
- Return Value:
- Number - index of the added item relative to the branch it was added to
Alternative Syntax
- Syntax:
- control tvAdd [pathParent, text]
- Parameters:
- control: Control
- pathParent: Array - Tree View Path of parent item or [] if no parent exists
- text: String
- Return Value:
- Number - index of the added item relative to the branch it was added to
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetValue tvSort tvSortByValue tvValue tvText tvSetText tvSetPicture tvSetPictureColor tvSetPictureRight tvSetPictureRightColor
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