NAME

dnd - Provide drag and drop functionality.

SYNOPSIS

dnd cmd widget-ID list-of-targets command ?-option optionVal ...?

OPTIONS

DESCRIPTION

cmd can either be setDestination or setSource. list-of-targets are the targets accepted by the destination or provided by the source (example: "STRING text/plain text/uri-list application/x-color"). command is a string which is evaluated when data is received (for setDestination) or data should provied (for setSource).

Before evaluating every percent (%) and its following character is substituted in command:
%d by the dropped data (only for setDestination)
%l by the length of the data (only for setDestination)
%t by the time
%T by the type of the data
%w by the widget-ID
%x by the x coordinate (only for setDestination)
%y by the y coordinate (only for setDestination)

If command for setDestination returns "delete" the source is signaled to delete the data (for move operations).
For setSource command must return the data to be dragged.
Valid options are:
-actions: one of default, copy, move, link, private
-buttons: list of button numbers which initiate the drag (only for setSource).

WIDGET COMMANDS

KEYWORDS


Copyright © 2001 - 2002 P. G. Baum