Documentation component by D.Glodt (c)2004

Appendix A: QTreeViewEx


QTreeView Component

QTreeView is a component inherited from QTreeView component with new methods.


QTreeViewEx Properties

Field

Type

R/W

Default






QTreeViewEx Methods

Method

Type

Description

Params






IndexOf

FUNCTION(name$) AS INTEGER

Return item index from text

1


GetNameNode

FUNCTION(index&) AS STRING

Return text node from index

1

GetIndexNode

FUNCTION(index&) AS INTEGER

Return index node from index

1

IsNode

FUNCTION(index&) AS BOOLEAN 

Return true if item index is a node

1


GetLevelCount

FUNCTION AS INTEGER

Return level count

0

EnumChildItems

SUB(index&)

Enum child items from index by event OnEnumChildItems

1

QTreeViewEx Event

Evenement

Type

Occurs when...

Params






OnEnumChildItems

(index as integer,text as string,Node as integer)

At running of method EnumChildItems

3


QTreeViewEx Example