Recent

Author Topic: WM_DROPFILES  (Read 8492 times)

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1947
WM_DROPFILES
« on: May 26, 2007, 03:13:49 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2707
RE: WM_DROPFILES
« Reply #1 on: May 29, 2007, 12:16:13 pm »
since it is only suppoerted on win32
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1947
RE: WM_DROPFILES
« Reply #2 on: May 29, 2007, 12:53:28 pm »
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

  • Sr. Member
  • ****
  • Posts: 274
RE: WM_DROPFILES
« Reply #3 on: May 29, 2007, 05:49:13 pm »
it is better to post your proposal with test app to bug tracker. then most of developers can look at it

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1947
RE: WM_DROPFILES
« Reply #4 on: May 29, 2007, 06:48:17 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: WM_DROPFILES
« Reply #5 on: May 29, 2007, 11:44:45 pm »
I suggest you upload your test app to the bug report.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1947
RE: WM_DROPFILES
« Reply #6 on: May 30, 2007, 10:47:05 am »

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: WM_DROPFILES
« Reply #7 on: May 30, 2007, 10:54:19 am »
Thanks.

 

TinyPortal © 2005-2018