"setDragEnabled", "setDropEnabled"

The functions enable the drag and drop at runtime for the tree widget.

Synopsis

shape.setDragEnabled(string id, bool enable);

shape.setDropEnabled(string id, bool enable);

Parameters

Parameter Description
shape Name of the object
id The id of the element on that the "drop" occurred or "" for the outside elements of a tree.
enabled

TRUE = depending on the used function, drag or drop is enabled.

FALSE = depending on the used function, drag or drop is disabled.

Description

The functions enable the drag and drop at runtime for the tree widget.

Example

The following example enables both drag and drop for the tree widget at runtime.

main()
{
  TREE1.setDragEnabled("", TRUE);
  TREE1.setDropEnabled("", TRUE);
}

Assignment

Tree widget