tvCurSel: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] ([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2;</sqf>")
mNo edit summary
 
Line 16: Line 16:
|p1= idc: [[Number]]
|p1= idc: [[Number]]


|r1= [[Array]] - [[Tree View Path]] of selected item
|r1= [[Tree View Path]] - selected item


|s2= [[tvCurSel]] control
|s2= [[tvCurSel]] control
Line 22: Line 22:
|p21= control: [[Control]]
|p21= control: [[Control]]


|r2= [[Array]] - [[Tree View Path]] of selected item
|r2= [[Tree View Path]] - selected item


|x1= <sqf>tvCurSel 101;</sqf>
|x1= <sqf>tvCurSel 101;</sqf>

Latest revision as of 18:36, 2 April 2026

Hover & click on the images for description

Description

Description:
Returns path to currently selected item. IDC means id of parent Tree View.
Groups:
GUI Control - Tree View

Syntax

Syntax:
tvCurSel idc
Parameters:
idc: Number
Return Value:
Tree View Path - selected item

Alternative Syntax

Syntax:
tvCurSel control
Parameters:
control: Control
Return Value:
Tree View Path - selected item

Examples

Example 1:
tvCurSel 101;
Example 2:
tvCurSel _ctrl;

Additional Information

See also:
tvAdd tvClear tvCollapse tvCount tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetData tvSetPicture tvSetValue tvSort tvSortByValue tvText tvValue

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note