tvAdd

From Bohemia Interactive Community
Revision as of 09:00, 11 September 2014 by Ffur2007slx2 5 (talk | contribs) (syntax & example)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Adds an item with given text to Tree View with given idc under specified path (zero based).
Groups:
Uncategorised

Syntax

Syntax:
tvAdd [idc, [path], text]
Parameters:
[idc, [path], text]: Array
idc: Number
[path]: Array - Array containing numbers.
text: String
Return Value:
Number

Alternative Syntax

Syntax:
_ctrl tvAdd [ [path], text]
Parameters:
_ctrl: Control
[ [path], text]: Array
Return Value:
Number

Examples

Example 1:
tvAdd [101, [0], "First item"];
Example 2:
_ctrl tvAdd [ [], "Parent_A"];

Additional Information

See also:
tvCleartvCollapsetvCounttvCurSeltvDatatvDeletetvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue

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

Notes

Bottom Section