What does the DragData contain?

Bob Sneidar bobs at twft.com
Mon Jan 10 17:57:48 CST 2011


Hi all. 

Well I know that I can put something into the dragData["private"] which either makes this a custom behavior, or else an array. I vote for the former. But is there any other "elements" that the dragData contains that I can use? For instance, the source object I drag from? 

I have 3 datagrids. I want to drag from grid1 into grid2 and have the value drop in the first column of grid2. I want to drag from grid3 into grid2 and have the value drop into the 3rd column of grid2. To do that properly, I need the dragDrop handler in grid2 to know where I am dragging from. 

Now I could simply make the dragData["private"] a comma delimited list and then parse it in grid2, but I was thinking there might be a cleaner way for grid2 to know what the source is. I would think the engine would know. I tried to create my own custom key, but of course I cannot do that. The structure seems to be read only. 

Bob





More information about the use-livecode mailing list