Topic: APLX Help : System Classes : Methods : Setinfo
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

The 'Setinfo' method


Argument: Nested vector
Result: None

Valid for: Tree

The Setinfo method allows you to set the display attributes of one of more nodes in a Tree object. The first element of the argument is a character vector giving the attribute name, and should be one of 'label' 'list' 'images' 'forceparent' 'highlightbold' 'highlightcut' 'highlightdrop' 'highlightselect' 'expanded' or 'expandedonce'. (Note: The 'highlightcut', 'highlightdrop' and 'forceparent' keywords apply to Windows only, and are ignored under MacOS.)

The remaining elements(s) give node identifiers and attribute values for those nodes. There are two possible ways to specify these:

(a) Element 2 is a vector of node identifiers, and element 3 is a vector/matrix of new values:

      Mywin.Tree1.SetInfo 'highlightbold' (1 5 10) (1 0 1)

(b) Element 2 is a matrix where the first column contains the node identifiers and the remaining column(s) are the new values:

      Mywin.Tree1.SetInfo 'highlightbold' (3 2 ⍴ 1 1 5 0 10 1)

Topic: APLX Help : System Classes : Methods : Setinfo
[ Previous | Next | Contents | Index | APL Home ]