Dropping a color item onto a tile
A drag and drop interaction requires a drag source and a drop acceptor:
- The drag source is the place from which you can drag an item--for example, you might drag a document from a folder on the desktop. The drag source is responsible for creating the item to be dragged--a drag and drop item--and initiating the drag and drop interaction. The drag source also defines the appearance of the item as it is dragged. After the drag source has started the drag and drop interactor, the Drag and Drop framework handles the interaction until the user drops the item.
- The drop acceptor is the target destination for the item--for example, you might drop a document onto a printer device icon to print it, or into a mail message to send it to another user. The drop acceptor is responsible for determining what type of items it can accept and how to absorb those items--that is, what to do with an item after the user drops it.
In this step, the Tiles program implements the ability for a Tiles document to be a drop acceptor for a color item. The drag source for the interaction can be ColorChooser, an application that allows you to compose any color, or any other context that can create a color item for you to drag.
For example, this figure shows how you would drag a color item from ColorChooser to a Tiles document--whatever tile you drop the color on turns the color of the dragged item:
The Tiles program also allows a user to Shift-click on a tile and drag the color of that tile back to the ColorChooser or to any other context that is a drop acceptor for colors.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker