Drag and Drop

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Drag and Drop

Post by RossG » Fri Nov 25, 2016 10:58 pm

Can I have a scrolling list field which can be moved
by the user?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Drag and Drop

Post by dunbarx » Fri Nov 25, 2016 11:53 pm

Hi.

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

Craig Newman

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Drag and Drop

Post by RossG » Sat Nov 26, 2016 12:45 am

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.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Drag and Drop

Post by [-hh] » Sat Nov 26, 2016 12:32 pm

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
shiftLock happens

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Drag and Drop

Post by RossG » Sat Nov 26, 2016 10:20 pm

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".
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”