All Manuals > CAPI User Guide and Reference Manual > 17 Drag and Drop

17.1 Overview of drag and drop

A drag and drop operation occurs when the user clicks and holds the mouse button in a pane supporting dragging, then drags to a pane supporting dropping, and releases the mouse button.

Visual feedback may be provided indicating that dragging is happening, whether a drop operation is possible at the current mouse position, and what operation will occur when the user drops. Usually the operation is the transfer of data.

You need to decide which CAPI pane(s) and interfaces will support dragging and then implement it for each, and similarly for dropping. You will implement drag and drop for one or more specified data formats.

17.1.1 Drag and drop with other applications

Certain predefined data formats can be dragged from a CAPI application to another application such as the Windows Explorer or the macOS Finder, and vice versa.

17.1.2 Drag and drop within a CAPI application

When both the drag and the drop phases are within the same CAPI image, you can specify private data formats, in addition to the predefined data formats.


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:25