[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:11:47 CEST 2012


Bernd schrieb:
> 2012/8/21 Graeme Geldenhuys <graemeg.lists at gmail.com>:
>> 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.
> 
> its not *between* the TWinControl and my component, my component is
> just there as a wrapper around some internal state (which could also
> be implemented in the TWinControl directly)

Your component should be a non-visual one, like a timer. Basing it on 
TWinControl is the wrong way, it *introduces* all the widgetset 
dependencies :-(

DoDi





More information about the Lazarus mailing list