如何从 JvtThumbview 拖动缩略图?
我正在编写一个所见即所得类型的编辑器程序,其中用户可以将图像缩略图拖动到编辑器表面(TPanel)上,然后通过将编辑器表面渲染到 PDF 上来创建 PDF。
在我的 TPanel 上,我有一个 TImage,用户可以调整其大小和移动。我为此使用 TSizeCtrl。
我有一个 TJvThumbview,它正在加载磁盘文件夹中的图像。
我想完成从 JvThumbview 到 TImage 的拖放 - 但无法做到这一点。
请有人详细说明我将如何实现这一点?
预先非常感谢。
I am writing a WYSIWYG type of editor program in which the user can drag image thumbnails onto an editor surface (TPanel) and then create a PDF by rendering the editor surface onto the PDF.
On my TPanel, I have a TImage which the user can resize and move. I am using TSizeCtrl for this.
I have a TJvThumbview which is being loaded with images from a disk folder.
I want to accomplish drag-drop from the JvThumbview onto the TImage - but cannot do this.
Please can someone detail how I would accomplish this?
Thanks so much in advance.
我无法抗拒。
我的演示项目包括:
TJvThumbView
和TImage
拖动是通过以下方式实现的:
TDragObject
派生类,TImage
上结束时绘制拖动的图像。它可能是这样的:
I cannot resist.
My demo project consists of:
TJvThumbView
andTImage
Dragging is achieved by:
TDragObject
derivative,TImage
.This is how it could look like: