| Index | Parent | NListtree class |
The NListtree class is used to manipulate trees of lists.
NListtree is a subclass of NListtree.mcc so you must have NListtree.mcc in MUI:libs/mui .
NListtree.mcc is copyright of Carsten Scholling <cs@aphaso.de> .
A NListtree object can be added ONLY to a NListview object at NListview object creation time.
Despite NListtree class is declaretd to be subclass of NList class, just the attribute DropMark may be used wit a NListtree object and no NList 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 NListtree.
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 NListtree notifies a PageMode group.
ActiveName
This attribute indicates the active entry in a NListtree
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="nlistview"
lv.list="list"
list.class="nlisttree"
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"