repositioning list-field lines

Bob Sneidar bobs at twft.com
Thu Mar 1 11:14:47 CST 2012


I used Scott's GetInLine. It's really nice visually. I did have a problem sometimes though where if I passed over the field it triggered the drag. I noticed that the condition was triggered when clicking a line to change the selected line. Apparently the field was receiving the mouseDown message but not receiving the mouseUp message. I fixed it by putting finishReorder at the end of the selectionChanged handler. Works famously now. I don't know if Scott wants to chime in on how that can happen, or if there is a simple fix for it beyond what I did. 

Bob


On Mar 1, 2012, at 1:23 AM, Nicolas Cueto wrote:

> Hello,
> 
> I was wondering if anyone had pointers on how to enable a user to
> reposition lines within a listfield. More specifically, a user would
> "press" on a line and drag it within the listfield to a different
> position. To reorder the lines, for example.
> 
> Hoping to not have to reinvent the wheel on this.
> 
> Thank you.
> 
> --
> Nicolas Cueto
> 
> _______________________________________________
> 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