On 21 August 2012 12:41, Hans-Peter Diettrich <[email protected]> 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. The idea is that the GUI Toolkit makes the DND task easier to use, and in a x-platform manner, so the application developer doesn't need to add IFDEF statements in there code or learn each platform's DND API. At least this is how it is done in fpGUI Toolkit. XDND is used under X11 and OLE DND under Windows - just like GTK2, Qt does. Good news is, the application developer doesn't need to worry about that at all. In the case of fpGUI, they simply register their dragable data with a mime type, hook into some TfpgWidget DND events, and fpGUI takes care of the rest. -- Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
