Users will not normally directly create instances of SCDragView, but only use it through its subclasses. The three subclasses, DragSource, DragSink, DragBoth, all function basically the same way: they are simple, graphically represented rectangles, which act as a drag-source, a drag target, or both. Their dragging behavior only differs from other GUI views, in that they do not require the cmd key to be held down for dragging. All other dragging functions are those defined by View. They inherit from SCStaticTextBase, and thus store their content in object and by default display their content using asString
. You can keep their string independent of the content, if you set setBoth = false
. You can also set a label to be displayed while dragging by using dragLabel_()
.
The following methods are usually not used directly or are called by a primitive. Programmers can still call or override these as needed.
The method called by default when initiating a drag. Returns object.