Drag/Drop from a scrolling list to a text field

Peter Haworth pete at lcsql.com
Sun May 20 17:59:17 EDT 2012


Just gave it a whirl and it worked fine after a slight tweak.  The list is
the same one that's the subject of the scrolling question, which alternatle
expands/collpases an entry when it's clicked on so I couldn't ignore the
processing of the line if it was the same line that was clicked.

The fix was to remove the check for the same line, set the dragData to
empty before thr loop that checks for a drag, then check if the dragData is
still empty after the loop; if it's not, I'm dragging; if it is, I process
the line as usual.

Pete
lcSQL Software <http://www.lcsql.com>



On Sun, May 20, 2012 at 2:52 PM, J. Landman Gay <jacque at hyperactivesw.com>wrote:

> On 5/20/12 1:41 PM, Peter Haworth wrote:
>
>> I have a need to allow the user to drag a line from a scrolling list field
>> and drop it into wherever the insertion point is in a text field.
>>
>> I found a lengthy thread about this in the list archives back in 2005 at
>> http://runtime-revolution.**278305.n4.nabble.com/Dragging-**
>> from-a-list-field-td284292.**html<http://runtime-revolution.278305.n4.nabble.com/Dragging-from-a-list-field-td284292.html>
>>
>> Since that's a pretty old post, I'm wondering if that is still the
>> recommended method.
>>
>> Jacque, looks like you were the originator of that post - any thoughts?
>>
>
> I don't even remember what I was working on when I wrote that, or how or
> if I solved it. I guess the best thing to do is just try it.
>
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
> ______________________________**_________________
> 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<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the use-livecode mailing list