Scrolling a group using an up or down swipe motion

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ewansmac
Posts: 15
Joined: Tue Oct 25, 2011 7:59 am

Scrolling a group using an up or down swipe motion

Post by ewansmac »

I am designing a database application that will run in IOS and Android and is some cards, the data is too long for the card especially when the keyboard is display. I have searched for a method to allow me to swipe up or down and have the data scroll with the swipe motion. I thought I was getting to know Livecode then something that should be easy beats me. Can anyone please help.
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Scrolling a group using an up or down swipe motion

Post by Simon »

I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
ewansmac
Posts: 15
Joined: Tue Oct 25, 2011 7:59 am

Re: Scrolling a group using an up or down swipe motion

Post by ewansmac »

Thanks Simon, that did the trick. Do you have any used how to limit the length of the scroll so i doesn't go off the visible card?

Ewan
SparkOut
Posts: 2987
Joined: Sun Sep 23, 2007 4:58 pm

Re: Scrolling a group using an up or down swipe motion

Post by SparkOut »

http://lessons.runrev.com/m/4069/l/9441 ... ll-a-field

This lesson is probably easily adapted to suit your needs.
Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Scrolling a group using an up or down swipe motion

Post by Mikey »

have you tried using a dataGrid? The easiest way to get a native scroller with a dataGrid is using Monte's little library for that at mergext.com called "mergDataGridScroller" http://mergext.com/controls/mergdatagridscroller/
ewansmac
Posts: 15
Joined: Tue Oct 25, 2011 7:59 am

Re: Scrolling a group using an up or down swipe motion

Post by ewansmac »

Thanks everyone, now working great.
Post Reply