What does the DragData contain?

Bob Sneidar bobs at twft.com
Tue Jan 11 12:21:35 EST 2011


Thanks Mark that clears a lot of things up. I found that by getting the short name of the source and destination, I can tell what column in each I am dragging from and to. 

One thing that would have been nice would have been to get a single column of data in a data grid with multiple columns. In fact, a command that gave me a column in ANY list or array would have been nice, but I know I will have to roll my own. Not a problem, just inconvenient. 

My goal is to drop a value onto a column in a multicolumn grid and have the value placed after the last value in that column. Picture something like Filemaker's data import dialog, where you can drag fields from the source and destination into a "merge table" and define the action by clicking a center column. That is what I am working on. 

While it's fun, I find myself spending an inordinate amount of time figuring out just how datagrids work, and how to implement drag and drop between them. Still, it's not time wasted, it's time spent getting an education. :-)


Bob


On Jan 10, 2011, at 7:47 PM, Mark Wieder wrote:

> Bob-
> 
> Monday, January 10, 2011, 3:57:48 PM, you wrote:
> 
>> grid2. To do that properly, I need the dragDrop handler in grid2 to
>> know where I am dragging from. 
> 
> Here's a writeup I did a while back because I can never remember this
> stuff (sounds like you might want to query the dragSource):
> 
> http://lessons.runrev.com/spaces/lessons/buckets/784/lessons/7124-Pinning-Drag-and-drop-to-the-mat-a-primer
> 
> -- 
> -Mark Wieder
> mwieder at ahsoftware.net
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list