Run time Properties of Tree Items

Visual LANSA

Run-time Properties of Tree Items

In a tree view, the items can have additional properties: Bold, HasChildren, Level and Expanded.

  • The Bold property makes the font of the caption of the item in bold. It can be set to True or False
  • The HasChildren property indicates whether the item contains child items. Its value can be Yes, No or Unknown.
  • The Level property is read-only. It indicates on what level of the tree view the focus item is. Its value is a number. See the help for the ItemExpanding event to see an example of how to use this property.
  • The Expanded property is used check and to control whether a tree view item which has children (called a node) is expanded or collapsed. It can have a value of True or False.

This command makes the caption of the current item bold:

set com(#trvw_1.CurrentItem) Bold(True) 

 

Ý 6.15.8 Working with Items in Lists