Kevin60 0 Posted September 6 I may be passing on old news, if not then I have found out how to successfully drag and drop images in Delphi. You do not use the existing commands concerned with drag and drop they are only used to move text from one text control to another or drag items from windows explorer. You use the PTinRect command and program a response to the outcome. The command checks if the top left corner of a control falls inside the boundary rectangle of another control. If it does then you can identify the name of the control underneath and perform an appropriate action. You have to create your own methods depending on the outcome but this is very easy basically IF..THEN commands. It works for any control and as I discovered is the standard method used by software companies to drag and drop images. Borland/Embarcadero never told us about this. I hope this has been helpful? Share this post Link to post
Patrick PREMARTIN 152 Posted September 6 Hi The standard Drag&Drop events and commands work for everything in VCL as in FireMonkey (on desktop platforms). Why don't you use them for an image ? Share this post Link to post
Kevin60 0 Posted September 6 Hi Patrick Thank you for your reply I have returned to programming after a long absence. I only have Delphi 7 and perhaps should have stated this in the post. Thanks for the information about Fire monkey. Kevin Jackson Share this post Link to post
Patrick PREMARTIN 152 Posted September 6 Ok, of course things have evolve in 20 years 😉 If you comply with its license, try the Community Edition. It is a big boost after Delphi 7, but you'll have to migrate old projects to Unicode & other things depending on what you used. Share this post Link to post