Page 1 of 1

Drag and Drop

Posted: Fri Nov 25, 2016 10:58 pm
by RossG
Can I have a scrolling list field which can be moved
by the user?

Re: Drag and Drop

Posted: Fri Nov 25, 2016 11:53 pm
by dunbarx
Hi.

Do you mean move the field? Your title sort of indicated you wanted to move a line within that field.

Craig Newman

Re: Drag and Drop

Posted: Sat Nov 26, 2016 12:45 am
by RossG
dunbarx wrote:Hi.

Do you mean move the field? Your title sort of indicated you wanted to move a line within that field.

Craig Newman
Want the user to be able to move the field as it
might otherwise obscure other info.

Re: Drag and Drop

Posted: Sat Nov 26, 2016 12:32 pm
by [-hh]
Works in the script of a list field because it (usually) has locked text.

Code: Select all

--RightClick for grabbing
on mouseDown b
   if b=3 then grab me
   else 
      -- your action
   end if
   pass mouseDown
end mouseDown

Re: Drag and Drop

Posted: Sat Nov 26, 2016 10:20 pm
by RossG
Thanks for that. Will give it a try.

Was surprised to find on listening to
Pete Seeger again that his songs seem
to be as relevant now as they were back
in the '60s. And of course I was "there".