-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What is the best way to tell a drag-and-drop operation to move OR  
copy, depending on where the drag starts?

I have an area whith 'source' images that are dragged (copied) to  
other containers from where these images rest until the are _moved_.
I came up with attaching a new mouseMove event handler on the copied  
images, adding a special object to the dragSource (containing the  
information that we want a move operation next time).

The dragDrop event handler then reads this information and creates a  
new item or uses the dragged one accordingly. I haven't worked with  
drag and drop a lot, and this feels like a hack to me. Is there a  
more standard way to specify the drap operation according to the drag  
source instead of drop target?

thanks,
best regards,
Christoph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkm6MOwACgkQZwp0O/P7cZuFxwCeOdJGLRED09FidBs4dLxgscdL
zgsAnRfoL/aPuG8Sy7Rg/7rYIwq/oQWY
=BT63
-----END PGP SIGNATURE-----

Reply via email to