All Manuals > CAPI Reference Manual > 1 CAPI Reference Entries

NextPrevUpTopContentsIndex

set-drop-object-supported-formats

Function
Summary

Sets the list of formats for a drop object

Package

capi

Signature

set-drop-object-supported-formats drop-object formats

Arguments

drop-object

A drop-object , as passed to the drop-callback

formats

A list of format keywords

Description

The function set-drop-object-supported-formats sets the list of formats that the drop object drop-object wants to receive.

The :string format can be used to receive a string from another application and the :filename-list format can be used to receive a list of filenames from another application such as the Macintosh Finder or the Windows Explorer.

GTK+ supports dragging of list of URIs. LispWorks uses a list of URIs to pass/receive the data with the format :filename-list , and also adds the format :uris . The behavior is as follows:

There is an example of :filename-list and :uris in
examples/capi/elements/gtk-filename-list-and-uris.lisp

On Cocoa and GTK+ the :image format can be used to receive images. The value passed needs to be an image obtect.

Any other keyword in formats is assumed to be a private format that can only be used to receive objects from with the same Lisp image.

Notes

set-drop-object-supported-formats should only be called within a drop-callback . See simple-pane for information about drop callbacks.

Example

See
examples/capi/output-panes/drag-and-drop.lisp
examples/capi/choice/drag-and-drop.lisp
examples/capi/choice/list-panel-drag-images.lisp

See also

drop-object-provides-format
simple-pane


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex