dropping files on different controls lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- protony · 2008-08-30 13:58 I really like the OnDropfile event implemented for TForm. It is really easy to use. But I have a problem - I would need my application to behave differently if the external file (e.g. from explorer) is dropped on different spots within the form. For example, if the file is dropped at GroupBox1, i want it to be deleted, while when the file is dropped at GroupBox2, i want to show its name and path. Is there any way how to achieve such thing with the present implementation of OnDropfile? For example localizing where exactly was the cursor at the time when the OnDropfile event was fired. Another possibility could be to make OnDropfile available for TGroupBox (and, in theory, for any object). But I don't know how to do either of the above... Thanx for advice ---------------------------------------------------------------------- theo · 2008-08-31 14:37 http://bugs.freepascal.org/view.php?id=8976