[Lazarus] Generalized DragDrop

zeljko zeljko at holobit.net
Sat Jan 22 17:29:50 CET 2011


On Saturday 22 of January 2011 17:27:43 Michael Van Canneyt wrote:
> On Sat, 22 Jan 2011, zeljko wrote:
> >> I'm all for it.
> >> Although I'm not sure that this can be implemented in a cross-platform
> >> way.
> >> 
> >> On Windows, the intra-app drag/drop is handled using OLE/DDE.
> >> On Linux, there is no such thing, and I think it depends on the used
> >> desktop software (KDE vs Gnome). I don't know how it is done in Mac.
> >> 
> >> But your suggestion is at least a step in the right direction.
> >> 
> >> I would implement support in 2 objects:
> >> TFileDragObject (external files, as dropped by file managers)
> >> TExternalDragObject (external app DnD)
> >> Both are created whenever an external DnD is found.
> > 
> > Files dropping is already implemented, and I'm pretty sure that Qt
> > supports DnD across different apps on all platforms. Haven't studied
> > gtk2 in this case, but your suggestion looks good.
> 
> I know about the File DND, but as far as I know, it's only on form level,
> it could be extended to any control (TFileNameEdit jumps to mind).

Why not, I'm already missing some things like dragging/dropping selected text 
eg. from/to openoffice doc.

zeljko




More information about the Lazarus mailing list