repositioning list-field lines
bobs at twft.com
Thu Mar 1 12:14:47 EST 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.
On Mar 1, 2012, at 1:23 AM, Nicolas Cueto wrote:
> 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:
More information about the Use-livecode