DragSource target point

Sep 21, 2009 at 5:50 PM

Hi there,

First off, amazing tool you've built here!  Very impressive all around.

I do have one question, and maybe its something that can already be done and I'm just not seeing it.  The case in which I'm trying to use the drag drop involves a bunch of little circles as dragsource/drop targets.  All in all its working just fine, but one thing that makes it handle strangely is that it seems to register whether a dragsource is over a drop target by the top left corner...  which feels somewhat strange in the case of circles :)  Is there currently any way to tweak what 'registration' point is used, or any way to work around it?

Thanks so much!

Sep 21, 2009 at 6:23 PM

Playing with the source code a bit, I was able to add in a Point property named RegistrationPoint and just add its values to the values of offsetMine in both GetCorrect DropTarget and CheckIfIAmInDropTarget and it seems to be having the desired effect so far.  Will post back if I run into any issues ;) Thanks!

 

Coordinator
Sep 21, 2009 at 8:49 PM

Hello,

 

glad to have been of help ;-)

 

Anyway, the changes you've made should indeed give you the desired behaviour!

 

Regards,
Kev.