touchMove to delete a line

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

touchMove to delete a line

Post by adventuresofgreg » Wed Oct 26, 2011 5:38 pm

Hi. I have a scrolling list behavior field and I would like to swipe from right to left back across a line to delete it (standard line delete in iPhone). Can someone please show me an example of how to use the multi-touch events to do this? touchStart, touchMove, touchEnd, touchRelease ?? Unless there is a different way of doing this?

thanks
Greg

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: touchMove to delete a line

Post by Dixie » Wed Oct 26, 2011 7:08 pm

Greg...

Look at the attached stack...
You can scroll up and down as normal... swipe across a line to delete it.
The script to delete the line is in the script of the field.

hope it helps,

Dixie
Attachments
deleteSwipe.livecode.zip
(2.74 KiB) Downloaded 329 times

Post Reply