[Lazarus] Generalized DragDrop

Michael Van Canneyt michael at freepascal.org
Sat Jan 22 17:27:43 CET 2011



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).

Michael.




More information about the Lazarus mailing list