| Index | Parent | NList class |
The NList class is used to manipulate lists.
NList class is a subclass of NList.mcc .
You must have NList.mmc in mui:lib/mui to use it.
Nlist.mcc is copyright Gilles Masson <masson@iutsoph.unice.fr> .
A list object is NOT a Listview : It is only the list that the Listview will render.
A NList object can be added ONLY to a NListview object at Listview object creation time.
See NListview
| ATTRIBUTES | |||
|---|---|---|---|
| Name | Type | Class | Note |
| Active | M | ISGN G2N | |
| ActiveEntry | S | N | |
| ActiveEntry0 | S | N | |
| ActiveEntry1 | S | N | |
| ActiveEntry2 | S | N | |
| ActiveEntry3 | S | N | |
| ActiveEntry4 | S | N | |
| ActiveEntry5 | S | N | |
| ActiveEntry6 | S | N | |
| ActiveEntry7 | S | N | |
| ActiveEntry8 | S | N | |
| ActiveEntry9 | S | N | |
| AdjustHeight | B | I | |
| AdjustWidth | B | I | |
| AutoCopyToClip | B | IS | |
| AutoVisible | B | ISG | |
| ButtonClick | N | GN | |
| ClickColumn | N | G | |
| DefaultObjectOnClick | B | IS | |
| DefClickColumn | ISG | ||
| DoubleClick | N | GN | |
| DragColOnly | N | SG | |
| DragSortable | B | ISG | |
| DragSortInsert | B | GN | |
| DragType | S | ISG G2N | |
| DropMark | N | G | |
| DropType | N | G | |
| Entries | N | GN | |
| EntryClick | N | GN | |
| First | M | ISGN G2N | |
| Format | S | ISG | |
| Input | B | ISG | |
| InsertPosition | N | GN | |
| ListviewTabSize | N | ISGN | |
| MinColSortable | N | ISG | |
| MinLineHeight | N | IS | |
| MultiClick | N | GN | |
| MultiClickAlone | N | GN | |
| MultiSelect | S | I | |
| Quiet | B | S | |
| SelectChange | B | N | |
| ShowDropMark | B | ISG | |
| SortType | N | ISGN | |
| SortType2 | N | ISGN | |
| Title | S | I | |
| TitleClick | N | ISGN | |
| TitleClick2 | N | ISGN | |
| TitleMark | N | ISG | |
| TitleMark2 | N | ISG | |
| Visible | N | N | |
| WrapCol | N | I | |
SortType is a number or one of:
Active is a number or one of:
DragType is one of:
First is a number or one of:
| METHODS | ||
|---|---|---|
| Name | Parameters | Note |
| Clear | ||
| Exchange | <entry1> , <entry2> | |
| GetEntries | <varname> | |
| GetEntry | <pos>,<var> | |
| GetSelected | <stem> | |
| Insert | <entry> , [pos] | |
| Jump | <pos> | |
| Remove | <pos> | |
| ReplaceCol | <pos>,<col>,<value> | |
| Select | <pos>,<val> | pos may be ACTIVE ALL - val may be ON OFF NONE TOGGLE |
| Sort | ||
| Sort2 | <type>,<add> | |
| Sort3 | <type> <add>,<which> | |
pos for Insert is a number or one of:
pos for GetEntry is a number or:
pos for Remove is a number or:
entry1 in Exchange is a number or one of:
entry2 in Exchange is a number or one of:
add in Sort1 and Sort2 is a number or one of:
which in Sort3 is a number or one of:
GetSelected will write in stem.0 ... the number of the selected entries and in stem.num the total number so you can cycle with a:
do i=0 to sel.num-1
say sel.i
end