Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Graeme Geldenhuys
Op 2011-01-23 22:09, Hans-Peter Diettrich het geskryf: Either different applications have to agree about exchangable data formats, What's wrong with that? That is exactly what *all* DND implementation do! The Source of the DND action supplies a list of data types they support, the target goes

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread michael . vancanneyt
On Sun, 23 Jan 2011, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: i.e. I have used the application-specific DnD, but I wouldn't know how to handle the intra-app DnD. Simply start the demo app twice, then drag... I was thinking about something non-trivial, of course. Please

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Graeme Geldenhuys
Op 2011-01-24 10:32, michael.vancann...@wisa.be het geskryf: Drop a piece of text from wordpad on a TMemo. The text should be inserted at the drop point. From the discussion, I assume you are still referring to fpGUI functionality (or the lack thereof). This is all on my todo list. As I

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread michael . vancanneyt
On Mon, 24 Jan 2011, Graeme Geldenhuys wrote: Op 2011-01-24 10:32, michael.vancann...@wisa.be het geskryf: Drop a piece of text from wordpad on a TMemo. The text should be inserted at the drop point. From the discussion, I assume you are still referring to fpGUI functionality (or the

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: whether the fpGUI approach may be added to the LCL as well, or what should work differently there. I'm afraid you will probably get the response that it's not Delphi compatible. ;) Of course your approach is not yet Delphi compatible, but it *can* be merged

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Op 2011-01-23 22:09, Hans-Peter Diettrich het geskryf: Either different applications have to agree about exchangable data formats, What's wrong with that? That is exactly what *all* DND implementation do! The Source of the DND action supplies a list of data types

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
michael.vancann...@wisa.be schrieb: I was thinking about something non-trivial, of course. Please specify what non-trivial use you have in mind, and what results you expect to see in this very early implementation stage (proof of concetpt). Drop a piece of text from wordpad on a TMemo.

Re: [Lazarus] Generalized DragDrop

2011-01-24 Thread Hans-Peter Diettrich
waldo kitty schrieb: i'm late to the party (again) but reading this, i had these questions... 1. what GUI environments are there that do not have clipboards? Dunno. Most will have such a feature, but the implementation can vary. 2. are there any that do /not/ use the clipboard for DnD

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Graeme Geldenhuys
On 23 January 2011 02:21, Hans-Peter Diettrich DrDiettrich1@ wrote: 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. I think that Graeme

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Graeme Geldenhuys
On 23 January 2011 03:16, Hans-Peter Diettrich DrDiettrich1@a* wrote: Clipboard formats (CF_...) may be usable on all platforms with a comparable/compatible clipboard functionality. But what about all the other platforms? As I mentioned, fpGUI uses mime-types. More and more platforms are

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Graeme Geldenhuys
Your current implementation is restricted to purely textual information, Simply because I was in a rush to implement the basic workings of DND for a new project of ours. Textual information was good enough to get that app's DND going. The DND does does lend itself to other data types too.

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Michael Van Canneyt
On Sun, 23 Jan 2011, Hans-Peter Diettrich wrote: Michael Van Canneyt schrieb: In fpGUI Graeme implemented an interface for inter-process dragging. It would be nice to have a similar interace in the LCL, that extends the current intra-process dragging. While it is correct that Graeme did

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: On 23 January 2011 03:16, Hans-Peter Diettrich DrDiettrich1@a* wrote: Clipboard formats (CF_...) may be usable on all platforms with a comparable/compatible clipboard functionality. But what about all the other platforms? As I mentioned, fpGUI uses mime-types.

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Just to be clear, the current textual data restriction in fpGUI's DND is simply because I haven't had time to implement the binary data support yet. So far, I have only implemented what was needed for our new project. In the near future, I'll complete the whole DND

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: i.e. I have used the application-specific DnD, but I wouldn't know how to handle the intra-app DnD. Simply start the demo app twice, then drag... I was thinking about something non-trivial, of course. Please specify what non-trivial use you have in mind, and

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread waldo kitty
On 1/22/2011 20:16, Hans-Peter Diettrich wrote: Graeme Geldenhuys schrieb: [...] I not sure if I understand the original statement, but in fpGUI I use the mime types to register the data that must be transfered via DND. Under Windows, I also register common mime-types that have easy mappings

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Graeme Geldenhuys
Op 2011-01-23 22:24, Hans-Peter Diettrich het geskryf: whether the fpGUI approach may be added to the LCL as well, or what should work differently there. I'm afraid you will probably get the response that it's not Delphi compatible. ;) Regards, - Graeme - -- fpGUI Toolkit - a

Re: [Lazarus] Generalized DragDrop

2011-01-23 Thread Graeme Geldenhuys
Op 2011-01-23 22:24, Hans-Peter Diettrich het geskryf: On Windows I'd expect that an fpGUI app accepts everything what notepad accepts, e.g. drags from Explorer, desktop icons... On a side note: I would not test any DND with Notepad, it is useless and can't even accept selected text drag as

[Lazarus] Generalized DragDrop

2011-01-22 Thread Hans-Peter Diettrich
In fpGUI Graeme implemented an interface for inter-process dragging. It would be nice to have a similar interace in the LCL, that extends the current intra-process dragging. Why that? - A more general approach could solve the known problem with docking forms, by including dragging by the

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread Michael Van Canneyt
On Sat, 22 Jan 2011, Hans-Peter Diettrich wrote: In fpGUI Graeme implemented an interface for inter-process dragging. It would be nice to have a similar interace in the LCL, that extends the current intra-process dragging. While it is correct that Graeme did this, I still have not seen in

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread zeljko
On Saturday 22 of January 2011 16:04:34 Michael Van Canneyt wrote: On Sat, 22 Jan 2011, Hans-Peter Diettrich wrote: In fpGUI Graeme implemented an interface for inter-process dragging. It would be nice to have a similar interace in the LCL, that extends the current intra-process dragging.

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread Michael Van Canneyt
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).

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread zeljko
On Saturday 22 of January 2011 17:27:43 Michael Van Canneyt wrote: 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

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread Graeme Geldenhuys
On 22 January 2011 17:04, Michael Van Canneyt michael@*** wrote: On Sat, 22 Jan 2011, Hans-Peter Diettrich wrote: In fpGUI Graeme implemented an interface for inter-process dragging. It would be nice to have a similar interace in the LCL, that extends the current intra-process dragging.

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread Graeme Geldenhuys
On 22 January 2011 18:27, Michael Van Canneyt michael@fre* wrote: 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). I was just about to mention that. File DND in Lazarus is very limited, and when I

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: In fpGUI Graeme implemented an interface for inter-process dragging. It would be nice to have a similar interace in the LCL, that extends the current intra-process dragging. While it is correct that Graeme did this, I still have not seen in action. i.e. I have

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread Hans-Peter Diettrich
Michael Van Canneyt schrieb: 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). Windows platform requires a HWND for a file DND, that can be supplied by any TWinControl. Other platforms can have

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: That's the beauty of that design internal component-to-component or external app-to-app DND is handled exactly the same - from the developers perspective. That was the whole point of that implementation - so you application is single source, no matter the platform

Re: [Lazarus] Generalized DragDrop

2011-01-22 Thread dmitry boyarintsev
On Sat, Jan 22, 2011 at 10:04 AM, Michael Van Canneyt mich...@freepascal.org wrote: 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. In Carbon