Tree-view predefined actions

Several predefined actions are implicitly available with a DISPLAY ARRAY controlling a TREE.

When a DISPLAY ARRAY controls a TREE container, the following actions are automatically created by the dialog:

  • collapseall: Closes completely the current tree-view node.
  • expandall: Opens the current tree-view node and all child nodes recursively.
These predefined actions can be configured with action defaults attributes, and can be bound to action views such as toolbar buttons:
ACTION DEFAULTS
ACTION collapseall (IMAGE="fa-compress", ACCELERATOR=F10 )
ACTION expandall (IMAGE="fa-expand", ACCELERATOR=F11 )
END

TOOLBAR
ITEM collapseall
ITEM expandall
END

Do not create action handlers (ON ACTION) for these predefined actions: The dialog implements the code to perform these actions.