readme.txt

来自「Drag files and Drop to delphi forms 0402」· 文本 代码 · 共 23 行

TXT
23
字号
AsyncTransferSource

This application demonstrates how to transfer data asynchronously via a stream.

The application uses a TDropEmptySource component and extends it with a
TDataFormatAdapter component.

While the drag/drop operation takes place in the main thread as always, the
actual data transfer is performed in a separate thread. The advantage of using a
thread is that the source application isn't blocked while the target application
processes the drop.
Note that this approach is normally only used when transferring large amounts of
data (e.g. file contents) or when the drop target is very slow.

While asynchronous drop targets (see the AsyncTransferTarget application)
requires the cooperation of the drop source, an asynchronous drop source can
perform its magic independently of the drop target.

Note that since the Drag and Drop Component Suite, and thus this demo, supports
asynchronous drop targets, you will not notice any difference between the two
modes of operation demonstrated by this application if you drop onto an
application that supports asynchronous transfer, such as the Windows Explorer.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?