How to scroll a card from top to bottom??

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Tsering
Posts: 4
Joined: Wed May 27, 2015 2:16 pm

How to scroll a card from top to bottom??

Post by Tsering » Tue Jul 28, 2015 5:44 pm

Hello! livecoders!
Anyone has solution for scrolling control on iPhone.at the beginning there is problem on the screen orientation on the app i am working on, but after digging here and there I managed to solve it!! 8) but now there is one more problem I can not scroll the card from top to bottom i made whole stack to exact-fit the screen but then all the objects that is on the card gets too small and crowded.I wanted to scroll it down so that i could put more fields and objects on it. Please write me back if anyone can help me with it! thanks so much in advance! cheers :)

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: How to scroll a card from top to bottom??

Post by Simon » Tue Jul 28, 2015 7:22 pm

Hi Tsering,
Here you go;
http://lessons.runrev.com/m/4069/l/9441 ... ll-a-field
Now that lesson only shows text being scrolled but it could be buttons or any object in that group.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

hilton
Posts: 35
Joined: Sat Dec 13, 2014 11:16 am

Re: How to scroll a card from top to bottom??

Post by hilton » Thu Jul 30, 2015 8:30 am

Hi,

I am pretty new at lc coding, however, what I do is:

Create all of the objects I want on the screen - buttons, text fields etc
Windows:
Put them all in a group
set the size of the group to the card
if the size of the objects in the group exceeds the card size a scroll bar will appear

I do not like scrollbars in Android so in addition to the above
I add a blank field to the bottom of the objects so that when the keyboard comes up I can force the screen to lift above the keyboard
Instead of using a scrollbar I use the touchstart and touchend events to move the screen up and down

Hilton.

Tsering
Posts: 4
Joined: Wed May 27, 2015 2:16 pm

Re: How to scroll a card from top to bottom??

Post by Tsering » Thu Jul 30, 2015 8:01 pm

Hi! Simon and Hilton!
thank you for your kind response :) but couldn't solve the problem yet. Simon, I tried this tutorial but still not working.I have no idea where I am doing wrong.

Hilton! I am working on iOS device.but i tried your method too,not working.would appreciate anyone has solution.
Tsering

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: How to scroll a card from top to bottom??

Post by Simon » Fri Jul 31, 2015 12:32 am

Hi Tsering,
Does the Scroller_Example.zip work for you? Its at the top of the lesson page.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply