| Index | Parent | Listtree class |
The Listtree class is used to manipulate trees of lists.
Listtree is a subclass of Listtree.mcc so you must have Listtree.mcc in MUI:libs/mui .
Listtree.mcc is copyright of Klaus Melchior <kmel@eifel.oche.de> .
A Listtree object can be added ONLY to a Listview object at Listview object creation time.
Despite Listtree class is declaretd to be subclass of List class, just the attribute DropMark may be used wit a Listtree object and no List class method may be used.
| ATTRIBUTES | |||
|---|---|---|---|
| Name | Type | Class | Note |
| ActiveID | N | ISGN | Note |
| ActiveName | S | ISGN | Note |
| DoubleClick | B | GN | |
| DragDropSort | B | IS | |
| DropType | S | G | Note |
| DropMark | N | G | Note |
| Format | S | I | |
| Quiet | B | IS | |
| Title | S | I | |
ActiveID
This attribute indicates the active entry in a Listtree.
The possible values are non negative integer, where 0
means no active entry, >0 means there is an active entry.
This attribute is usefull in situation such as the active
entry in a Listtree notifies a PageMode group.
ActiveName
This attribute indicates the active entry in a Listtree
referred by name. If at list creation time (or in an
Insert method) the name of an entry is specified, that
name is used, otherwise, it is the the ActiveID.
Any reference to an entry is made by this name.
Drag and Drop
The attribute DropMark and DropType let you perform
d&d operations. DropMark is the position (NAME) of
the destination and DropType is one of:
| METHODS | ||
|---|---|---|
| Name | Parameters | Note |
| Close | [list],[tree] | |
| Insert | <entry>,[list],[pred],[flags] | |
| Open | [list],[tree] | |
Insert
Open
Example
lv.class="listview"
lv.list="list"
list.class="listtree"
list.frame="inputlist"
list.format="BAR,"
list.title="Name|Phone"
list.0="Friends"
list.0.flags="close"
list.0.list="friends"
friends.0="Franco|0864833124"
friends.1.type="tree"
friends.1.flags="close"
friends.1="University"
friends.1.list="uni"
uni.0="Ciccio"
uni.1="Camillo"
uni.2="Profs"
uni.2.flags="list"
friends.2="Roberto"
list.1="Amiga shop in Empoli"