Drag and Drop

Quick Reference Guide


Method signature

setDrag = "[bool] dragable"
[bool] is a true or false string value

setDropTarget = "[int] type"
[int] is an integer value, 1 to 3


Examples

In this example we will be using an edit widget, which we make draggable
setDrag="true"

Setting the drop target to .. setDropTarget="1" ..
it reads as;
Drag and set the content of this widget
Thus the 'dragable' widget's label, color, border, images, children are
set in the 'targeted' widget.


Setting the drop target to .. setDropTarget="2" ..
it reads as;
Drag and add as a child widget
Thus the 'dragable' widget is cloned and added to the target widget as a child


Setting the drop target to .. setDropTarget="3" ..
it reads as;
Drag and move the widget
Thus the 'dragable' widget is moved and added to the target widget as a child





Notes

The setDrag and setDropTarget are NOT inheritable attributes
If you need to each item in a tree to be drag and dropable then
you would have to set each item as setDrag to true
If you wish to allow the tree elements to accept items to be
added as children then setDropTarget to 3