Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.22

Description

Description:Returns the array index of the currently selected treenode. Each index in the array corresponds to the parent, child relation similar to turrets. Note: Node arrays change if tree gets resorted or items are inserted or deleted.

Syntax

Syntax:treeCurSel control
Parameters:
  • control: Control - The dialog control object.
Return Value:Array

Alternative Syntax

Syntax:treeCurSel [control,returnMultiple] (V3.7+)
Parameters:
  • control: Control - The dialog control object.
  • returnMultiple: Boolean - Returns an array of paths of the selected tree items. The tree path is represented by an array of indexes. (Optional, default: false)
Return Value:Array

Examples

Examples:
_data = treeCurSel _control

Additional Information

See also: treeSetCurSel, treeCurSelData
Multiplayer:
Problems:

Notes





Posted on October 29, 2008 - 17:43
Raedor
Here an example, a schematic view of a tree control(groups = nodes, units = items):


Grp1

 Unit 0
 Unit 1
 Unit 2

Grp2

 Unit 3 <--- selected
 Unit 4
 Unit 5

returns [1,0]