Can dragDrop know the source chunk?
Ken Ray
kray at sonsothunder.com
Wed Oct 22 01:06:23 EDT 2003
David,
You *can* trap it in dragStart... I created two fields, one with this
script:
global gChunk
on dragStart
put the selectedChunk into gChunk
pass dragStart
end dragStart
and the other with:
global gChunk
on dragDrop
put gChunk
pass dragDrop
end dragDrop
I end up getting the selectedChunk in the message box. Perhaps something
else is getting in your way?
Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/
> -----Original Message-----
> From: metacard-bounces at lists.runrev.com
> [mailto:metacard-bounces at lists.runrev.com] On Behalf Of
> depstein at att.net
> Sent: Tuesday, October 21, 2003 11:05 PM
> To: metacard at lists.runrev.com
> Subject: Can dragDrop know the source chunk?
>
>
> With text selected for dragging from a field, it seems that a
> dragStart handler or a mouseDown
> handler that tries to learn "the selectedChunk" will come up
> empty. The dragSource tells the
> object that was dragged from, and the dropChunk tells what
> chunk was dropped to. Is there
> any way to know what chunk has been dragged from? (Applying
> an offset function to the
> dragData["text"] may err if the dragged text occurs more than
> once in the source field).
>
> Many thanks.
>
> David Epstein
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metac> ard
>
More information about the metacard
mailing list