HOME
The Info List - Drag And Drop


--- Advertisement ---



(i)

In computer graphical user interfaces , DRAG AND DROP is a pointing device gesture in which the user selects a virtual object by "grabbing" it and dragging it to a different location or onto another virtual object. In general, it can be used to invoke many kinds of actions, or create various types of associations between two abstract objects .

As a feature, drag-and-drop support is not found in all software , though it is sometimes a fast and easy-to-learn technique. However, it is not always clear to users that an item can be dragged and dropped, or what is the command performed by the drag and drop, which can decrease usability.

CONTENTS

* 1 Actions * 2 In Mac OS * 3 In OS/2
OS/2
* 4 In HTML * 5 On a touch screen * 6 In end-user programming * 7 Examples * 8 See also * 9 References

ACTIONS

The basic sequence involved in drag and drop is:

* Move the pointer to the object * Press, and hold down, the button on the mouse or other pointing device , to "grab" the object * "Drag" the object to the desired location by moving the pointer to this one * "Drop" the object by releasing the button

Dragging requires more physical effort than moving the same pointing device without holding down any buttons. Because of this, a user cannot move as quickly and precisely while dragging (see Fitts\' law ). However, drag-and-drop operations have the advantage of thoughtfully chunking together two operands (the object to drag, and the drop location) into a single action. Extended dragging and dropping (as in graphic design) can stress the mousing hand.

A design problem appears when the same button selects and drags items. Imprecise movement can cause a dragging when the user just wants to select.

Another problem is that the target of the dropping can be hidden under other objects. The user would have to stop the dragging, make both the source and the target visible and start again. In classic Mac OS the top-of-screen menu bar served as a universal "drag cancel" target. This issue has been dealt with in Mac OS X with the introduction of Exposé .

IN MAC OS

Drag and drop, called CLICK AND DRAG at the time, was used in the original Macintosh to manipulate files (for example, copying them between disks or folders. ). System 7 added the ability to open a document in an application by dropping the document icon onto the application's icon.

In System 7.5 , drag and drop was extended to common clipboard operations like copying or moving textual content within a document. Content could also be dragged into the filesystem to create a "clipping file" which could then be stored and reused.

For most of its history Mac OS has used a single button mouse with the button covering a large portion of the top surface of the mouse. This may mitigate the ergonomic concerns of keeping the button pressed while dragging.

IN OS/2

The Workplace Shell
Workplace Shell
of OS/2
OS/2
uses dragging and dropping extensively with the secondary mouse button , leaving the primary one for selection and clicking. Its use like that of other advanced Common User Access features distinguished native OS/2
OS/2
applications from platform-independent ports.

IN HTML

The HTML5 working draft specification i