[Lazarus] GTK2: Drag files to other applications (to the file manager, Thunar, Nautilus, etc)

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Aug 22 02:08:16 CEST 2012


Graeme Geldenhuys schrieb:
> On 21 August 2012 12:41, Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
>> They *have* to use the platform protocols, so why should dragging files or
>> other objects run through an widgetset instead of using the API directly?
> 
> I have to admit that Bernd's implementation does seem strange - now
> with multiple DND implementation between the LCL's TWinControl and his
> TComponent descendant. But if it works, then great.
> 
> I also have so say, considering I have implemented x-platform DND in
> fpGUI using platform API's directly, that using the platform API's
> directly is a very complex task.

What's complex in providing a list of filenames, in a TStrings object, 
and let the RTL/FCL do the rest?

Sending other objects is different, because it's bound to platform 
capabilities and cannot be covered by a simple API.

DoDi





More information about the Lazarus mailing list