WM_DROPFILES lazarus / 7-LCL ---------------------------------------------------------------------- theo · 2007-05-26 13:13 Can anybody explain the reason for the compiler switch EnableWMDropFiles used in win32callback.inc? Why is the WM_DROPFILES message disabled by default? Side effects if enabling it? ---------------------------------------------------------------------- Marc · 2007-05-29 10:16 since it is only suppoerted on win32 ---------------------------------------------------------------------- theo · 2007-05-29 10:53 Thanks for you answer! But I'm not sure if this is a good reason. It's only a message after all Background is: I've made a little test unit based on this code: http://www.mail-archive.com/lazarus@miraclec.com/msg03161.html I've changed a little thing and now it also works for dropping files from Konqueror to a GTK1, GTK2 App. The same unit works for win32 too, but only if you recompile the LCL with the EnableWMDropFiles switch. The Test App is here: http://www.lazarusforum.de/viewtopic.php?t=673 If you don't like to register to the German Laz Forum but would like to see the code, tell me please. If there is no side-effect to it, I'd suggest to enable this message by default. If you agree, I'll make a feature request on the bugttracker. ---------------------------------------------------------------------- Paul Ishenin · 2007-05-29 15:49 it is better to post your proposal with test app to bug tracker. then most of developers can look at it ---------------------------------------------------------------------- theo · 2007-05-29 16:48 Well my proposal has not much to do with the test app. The case I'm talking about is quite clear: No WM_DROPFILES in Win32 by default (intentionally blocked by compiler - switch). My proposal ist to enable WM_DROPFILES by default. ---------------------------------------------------------------------- Vincent Snijders · 2007-05-29 21:44 I suggest you upload your test app to the bug report. ---------------------------------------------------------------------- theo · 2007-05-30 08:47 OK, done: http://www.freepascal.org/mantis/view.php?id=8976 ---------------------------------------------------------------------- Vincent Snijders · 2007-05-30 08:54 Thanks.