Structure: treenode

Object Description:

A node object (leaf or branch) within a tree window

Creation Command:

wtree, treenode

Permitted Scope:

local, global, or application

Array Capability:

Yes

Membership Potential:

compound, gstructure, structure, custom

Graphic Primitive Capability:

No

User Function Capability:

Yes, treenode_function

 

Generic Elements

.access

-

string

Access rights

.alength

*

numeric

Array length

.class

*

string

Identifier class (time)

.desc

-

string

Description

.elements

*

string [20]

Structure element names

.etypes

*

string [20]

Structure element types

.is_class

*

numeric func

Whether identifier is an instance of a particular class

.is_proc

*

numeric

Whether identifier is a procedure/function

.num_elements

*

numeric

Structure element count (20)

.owner

*

string

Owner user-id

.time

-

time

Modification time

.type

*

string

Identifier type (treenode)

.variant

*

string

Identifier variant (identifier)

* = Read-only element

 

Structure Elements

.add_child

*

treenode fn

Add a child node

.add_sibling

*

treenode fn

Add a sibling node

.checked

-

numeric

User boolean/check box value

.child

*

treenode []

Child nodes

.child_count

*

numeric

Child node count

.expanded

-

numeric

Current expansion state

.focus

*

procedure

Select a node

.has_value

*

numeric

Is it a value or class node?

.image

-

string [2]

Node images

.insert_sibling

*

treenode fn

Insert a sibling node

.kill

*

numeric fn

Remove the node

.label

-

string

Node label

.nvalue

-

numeric

User numeric value

.parent

*

treenode

Parent node

.pre_sibling

*

treenode

Preceding sibling node

.sibling

*

treenode

Next sibling node

.tooltip

-

string

Tooltip text

.tvalue

-

string

User text value

.vdata

-

indirect

User indirect identifier value

.window

*

window

Parent window

* = Read-only element

 

Treenode Class Elements

.check

-

callback

Statements to execute on toggling the check box

.class_image

-

string[2]

Default images for class nodes

.class_label

-

string

Default label for class nodes

.contract

-

callback

Statements to execute on node contraction

.delete

-

callback

Statements to execute on pressing the delete key

.deselect

-

callback

Statements to execute on node deselection

.exec

-

callback

Statements to execute on pressing the return key

.expand

-

callback

Statements to execute on node expansion

.extend

*

procedure

Add static members

.node_name

-

string

Node reference name

.populate

-

callback

Statements to execute on node child population

.select

-

callback

Statements to call on node selection

.value_image

-

string[2]

Default images for value nodes

* = Read-only element