[Lazarus] Is it possible to drag and drop a web browser URL into a Lazarus app?
DrDiettrich1 at aol.com
Thu Mar 22 10:59:20 CET 2012
Graeme Geldenhuys schrieb:
> On 20 March 2012 16:37, Frank Church <vfclists at ...> wrote:
>> Is it possible to drag and drop a web browser URL into a Lazarus app?
>> Are there some controls with that facility?
> In fpGUI is is handled just like any other DND action. Simply register
> what mime-type the drop target must look out for. It will then happile
> accept a drop action if such a mime-type is supplied. Simple and easy
> to use, and works on all platforms.
> Lazarus's drag-n-drop is based on the very limited Delphi / Windows
> DND, so is mainly build for in-app drag-n-drop, and not able to accept
> external drag-n-drop actions. Normally (in Delphi) you would have to
> revert to Windows API calls to get better DND support. I remember
> seeing them (the Lazarus team) extending the default limited DND a bit
> to support dropping files on a LCL app, but that is a far cry from
> complete DND support.
Inter-process D&D requires special assistance by the OS. IMO such
operations are limited to drop file names, or other pure text, unless a
platform offers something like OLE-DragDrop.
More information about the Lazarus