| allowcontextmenu |
Description: Allows to use a context menu when right clicking the tree or not
Syntax: {boolean„'} 'obj' Świ 'allowcontextmenu' {boolean}
boolean: 1(default)=right click displays a context menu, 0=right click has no effect
Example:
'ff.tree' Świ 'allowcontextmenu'1 |
| allowdragdrop |
Description: Allows to drag and drop a branch of the tree on to another branch
Syntax: {boolean„'} 'obj' Świ 'allowdragdrop' {boolean}
boolean: 1(default)=drag & drop is allowed, 0=drag & drop has no effect
Example:
'ff.tree' Świ 'allowdragdrop'1 |
| checkbox |
Description: Display check boxes to the left of tree items or not
Syntax: {boolean„'} 'obj' Świ 'checkbox' {boolean}
boolean: 1=display check boxes, 0(default)=do not display check boxes
Example:
'ff.tree' Świ 'checkbox'1 |
| checked |
Description: Indicate which item check boxes should be checked
Syntax: {booleanvec„'} 'obj' Świ 'checked' {booleanvec}
booleanvec: boolean vector with 1's for items which check boxes are checked
Note: show Check Boxes even if they were not visible before <checked> is called
Example:
'ff.tree' Świ 'checked'1 0 0 1 0 0 0 1 1
'ff.tree' Świ 'checked'1 © check all items
'ff.tree' Świ 'checked'1 0 © check every other item |
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
 |
| data |
Description: Allows to specify additional data attached to tree branches
Syntax: {data„'} 'obj' Świ 'data' {nestedmatrix}
nestedmatrix: a nested matrix of data which number of rows matches the *list property number of rows
Example:
'ff.tree' Świ 'data' (3 3˝'APL+Win'1000 1 'APL+Unx'3000 1 'APL+Dos'500 0) |
| depths |
Description: Indicate the tree item depths for all tree items
Syntax: {depths„'} 'obj' Świ 'depths' {depths}
depths: integer vector representing the depths of all the tree items
Example:
'ff.tree' Świ 'depths'1 2 2 3 4 5 2 3 4 |
| dropatrootlevel |
Description: Indicate whether the dropped items should become children of root or of target item on which they are dropped
Syntax: {boolean„'} 'obj' Świ 'dropatrootlevel' {boolean}
boolean: 1=drop as children of root 0=drop as children of target item level
Example:
'ff.tree' Świ 'dropatrootlevel'1 |
| help |
Example:
0 0˝'ff' Świ '*Create' 'TForm5' ('*size'300 400) 'DemoShow'
0 0˝'ff.tree' Świ '*Create' 'TTree5' ('wherelc'Đ Đ '>' '>') ('attach'1 2 3 4)
0 0˝'tree' Świ 'treeex'1 0 0(1 2 2 3 4 4 2 3 2) ('Label1' 'Label2' 'Label3' 'Label4' 'Label5' 'Label6' 'Label7' 'Label8' 'Label9') (9˝›23 24 0 0) (9˝›'')
0 0˝'tree' Świ 'ExpandTree'
'tree'Gets5 5
‘tree
© Another way to work with the Tree object
0 0˝'ff' Świ '*Create' 'TForm5' ('*caption' 'TTree5 Example') ('*size'300 400) 'DemoShow'
0 0˝'ff' Świ '*.tree.Create' 'TTree5' ('wherelc'Đ Đ'>' '>'0'>5+Objects') ('caption' 'Objects')
0 0˝'ff' Świ '.tree.attach'1 2 3 4
labels„ś'TObject5' 'TForm5' 'TEdit5' 'TEditList5' 'TEditSpin5' 'TCombo5' 'TComboFilter5'
sons„7 2˝ 1 Ż1 2 1 3 1 4 3 5 3 6 1 7 6
images„122 121 0 0
0 0˝'ff' Świ '.tree.list'sons labels images
0 0˝'ff' Świ '*.tree.Expand' 'expandbranch'1
0 0˝'ff' Świ '.tree.Check'2 Ż3 5 © add check boxes to nodes 2 3 and 5 and check 2 and 5
0 0˝'ff' Świ '.tree.Check' (Ľ7)
0 0˝'ff' Świ '.tree.RemoveCheckBox'1 3 4 6 |
| ids |
Description: Get or Set the tree item id numbers
Syntax: {intvec„'} 'obj' Świ 'ids' {intvec}
intvec: an integer vector of the tree items id numbers
Example:
'ff.tree' Świ 'ids'1 7 6 5 4 3 2 8 9 |
| image |
Description: Indicate whether an image should be displayed to the left of tree items or not
Syntax: {boolean„'} 'obj' Świ 'image' {boolean}
boolean: 1(default)=an image is displayed to the left of tree items, 0=no image is displayed
Example:
'ff.tree' Świ 'image'1 |
| images |
Description: Get or Set the image numbers for all the tree items
Syntax: {images„'} 'obj' Świ 'images' {images}
images: a 4-column integer matrix representing tree item images
[;1] „… image for non selected node
[;2] „… image for selected node
[;3] „… index to an overlay image
[;4] „… index to a user-state image (default=0)
Example:
'ff.tree' Świ 'images' (9 4˝68 78 0 0) |
| labels |
Description: Get or Set the tree item labels
Syntax: {labels„'} 'obj' Świ 'labels' {labels}
labels: a nested vector of labels for all the tree items
Example:
'ff.tree' Świ(›'labels'),(›'Test '),¨•¨Ľ9 |
| list |
Description: Set or return the TTree list property
Syntax: 'obj' Świ 'list'tree labels {images} {style}
tree: 2-column integer matrix with son ids in column 1 and father ids in column 2
labels: character matrix of sons tree labels
or vector of character vectors of tree labels
images: a b 0 0 where a & b are image indices in BUTTONS.BMP for non active & active nodes
style: (optional) a nested vector of styles being a subset of:
'highlightbold' 'highlightcut' 'highlightdrop' 'highlightselect'
Example:
'ff.tree' Świ 'list' (4 2˝1 0 2 1 3 2 4 1) (ś'Node1' 'Node2' 'Node3' 'Node4') (23 24 0 0) ''
R„C TreeMat I- Draw tree from node I"
C „… Incidence matrix"
I „… Node number from which to draw the tree"
R „… Tree drawn as an integer matrix"
The final tree matrix must be: (0,tree[;Śio])[Śio+R]"
Requires: -"
(c) Eric Lescasse[3jan92]" |
| movechildren |
Description: Tells if the Move methods (MoveUp, MoveDn, MoveRight and MoveLeft) also move the topic children
Syntax: {boolean„'} 'obj' Świ 'movechildren' {boolean}
boolean: 1=move children with topic; 0=don't
Example:
'ff.tree' Świ 'movechildren'1 |
| states |
Description: Get or Set state information for all nodes
Syntax: 'obj' Świ 'states' {states}
states: a nested vector of nested vector containing state information for all tree nodes
Each nested vector contains a subset of the following items:
'highlightbold' 'highlightcut' 'highlightdrop' 'highlightselect' 'expanded'
'expandedonce' 'haschildren' 'forceparent'
Example:
'ff.tree' Świ 'states' (9˝›'highlightbold' 'expanded')
aaa„'ff.tree' Świ 'states'
aaa[4]„›'highlightbold'
'ff.tree' Świ 'states'aaa |
| tree |
Description: Get or set a nested matrix representing a tree and optionnally addtional data associated with tree branches
Syntax: 'obj' Świ 'tree' {nestedmatrix}
nestedmatrix: a nested APL matrix with at least 2 columns:
nestedmatrix[;1] „… tree node depths (starting at 1 for root)
nestedmatrix[;2] „… tree node labels
nestedmatrix[;3] „… 0(default) or (a b 0 0) where a & b are image indices into BUTTONS.BMP
nestedmatrix[;4] „… '' or a nested vector containing any subset of:
'highlightbold' 'highlightcut' 'highlightdrop' 'highlightselect' 'expanded'
'expandedonce' 'haschildren' 'forceparent'
0 4‡nestedmatrix „… additional tree node data
Example:
'ff.tree' Świ 'tree' (4 4˝1'Node1' (23 24 0 0) ('highlightbold' 'highlightselect')2'Node2' (23 24 0 0) ''3'Node3' (23 24 0 0) ''4'Node4' (23 24 0 0) '') |
| treeex |
Description: Get or Set the extended tree property describing the Tree content
Syntax: 'obj' Świ 'tree'image checkbox ids depths{labels}{image indices}{state information}
image: 0=do not display images or 1=display images
checkbox: 0=do not display check boxes or 1=display check boxes
ids: Đ=number nodes from 1 to N or vector of node numbers
depths: vector of node depths
labels: vector of node labels
imageindices: vector of 44-element vectors of image indices
stateinformation: vector of node state information
Example:
'ff.tree' Świ 'treeex'0 1(Ľ4) (1 2 3 2) ('Node1' 'Node2' 'Node3' 'Node4') (›23 24 0 0) ('' '' ('highlightbold' 'highlightselect') '') |