tvAdd: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *PARAMETER[0-9]{1,3} *= * " to " ") |
||
Line 21: | Line 21: | ||
|s2= control [[tvAdd]] [pathParent, text] | |s2= control [[tvAdd]] [pathParent, text] | ||
|p21= control: [[Control]] | |p21= control: [[Control]] | ||
|p22= pathParent: [[Array]] - [[Tree View Path]] of parent item or [] if no parent exists | |p22= pathParent: [[Array]] - [[Tree View Path]] of parent item or [] if no parent exists | ||
|p23= text: [[String]] | |p23= text: [[String]] | ||
|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 |
Revision as of 18:14, 29 January 2021
Description
- Description:
- Description needed
- Groups:
- GUI Control - Tree View
Syntax
- Syntax:
- Syntax needed
- Parameters:
- idc: Number
- pathParent: Array - Tree View Path of parent item or [] if no parent exists
- text: String
- Return Value:
- Return value needed
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:
_index = _ctrl tvAdd [[], "Parent Item"];
- Example 2:
_index = tvAdd [101, [0], "First item"];
Additional Information
- See also:
- See also needed
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