tvCurSel: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 11: Line 10:


|eff= local |Multiplayer Effects=
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________


| Returns path to currently selected item. IDC means id of parent Tree View. |DESCRIPTION=
| Returns path to currently selected item. IDC means id of parent Tree View. |DESCRIPTION=
____________________________________________________________________________________________


| [[tvCurSel]] idc |SYNTAX=
| [[tvCurSel]] idc |SYNTAX=
Line 21: Line 18:


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


| s2= [[tvCurSel]] control |SYNTAX2=
| s2= [[tvCurSel]] control |SYNTAX2=
Line 28: Line 24:


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


|x1= <code>[[tvCurSel]] 101;</code> |EXAMPLE1=
|x1= <code>[[tvCurSel]] 101;</code> |EXAMPLE1=


|x2= <code>[[tvCurSel]] _ctrl;</code> |EXAMPLE2=
|x2= <code>[[tvCurSel]] _ctrl;</code> |EXAMPLE2=
____________________________________________________________________________________________


| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO=
| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO=


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}

Revision as of 04:47, 17 January 2021

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:
Array - Tree View Path of selected item

Alternative Syntax

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

Examples

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

Additional Information

See also:
tvAddtvCleartvCollapsetvCounttvDatatvDeletetvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue

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