On Thu, 21 Jun 2007, Burkhard Carstens wrote:

> Am Mittwoch, 20. Juni 2007 09:36 schrieb Michael Van Canneyt:
> [..]
> > Actually, windows has something similar, it's the 'drop files'
> > message, when the user drops files from the explorer on your app. The
> > same exists on X-windows, so it should be possible to provide an
> > abstraction in the LCL which handles this. I would propose an
> > OnFileDrop handler in TForm which responds to this message, and which
> > has a parameter AFileName which contains the filename of the dropped
> > file. if multiple files are dropped (possible in windows), the
> > handler can be called several times.
> >
> > Possibly an 'AllowFileDrop' handler should be made too, which checks
> > the extension of the files and determines whether the application can
> > handle them.
> 
> I'd prefer this being an event of TApplication. Possibly with a 
> reference to the form/component the files were dropped on, if any. 
> Maybe implement it in TApplication and TForm, so one can intercept and 
> handle the message at App level or have it automatically delegated to 
> either the current active form (OS X dbl-click) or the form on which 
> the files were dropped (win / x drag'n'drop).

Sounds fine to me. Now we need an implementor :-)

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to