[DUG] Drag and Drop from explorer

Myles Penlington myles at ams.co.nz
Thu Oct 23 15:19:04 NZDT 2008


Just use the parents window handle, and then check if the mouse falls
within the graphic control boundaries. Windows only knows about controls
that have handles. Graphic controls etc are in essence just a Delphi
painting layer on top of a windowed control.

Myles.




-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Alister Christie
Sent: Thursday, 23 October 2008 3:08 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Drag and Drop from explorer

I want to be able to drop files from windows explorer onto a 
TGraphicControl and haven't seen any way to do this.  It's really easy 
if you have a handle (such as a panel).

The only solution I can find is to put a panel behind the 
TGraphicControl, but I have 20 of these controls and it would just be a 
pain to insert panels as their parent (I suppose I could cheat and add 
them programatically).

-- 
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington 

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe

Attention:
This communication is confidential and may be legally privileged.  If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.



More information about the Delphi mailing list