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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
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: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] 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.

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

Reply via email to