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

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


Graeme Geldenhuys schrieb:
> Hi,
> 
> On 22 August 2012 01:08, Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:
>> Sending other objects is different, because it's bound to platform
>> capabilities and cannot be covered by a simple API.
> 
> Exactly my point. I didn't implement some half-assed DND in fpGUI.
> Current LCL's DND support is totally useless. When I think DND, I
> think any type of data,

How do you intend to communicate your type to the world outside?

Mime types are nice, but useful only when the receiver understands them 
- not very likely on Windows :-(

> dragging inside my application as well as
> outside my application (send and receive).

> Not to mention the fact
> that XDND requires window handles to function etc, which a non-GUI
> drag component wouldn't have.

Timers also have handles. The problem boils down to how the *platform* 
finds possible drop targets.

DoDi





More information about the Lazarus mailing list