How to layout & control a scrollable app/program

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
Tom4c
Posts: 8
Joined: Mon Feb 07, 2011 4:44 pm

How to layout & control a scrollable app/program

Post by Tom4c » Tue Jan 15, 2013 10:39 am

Hello,

I hope to develop a landscape android app with a custom scroll bar on the right hand side, and navigation buttons on the left. I'm comfortable that I can build these controls as groups and fix their locations using the geometry manager. However, in the middle of the screen, the main 'content area' will be a large jumble of labels/text fields/tables that will need to be scrolled up and down in order to see the entire content. In the old html days i would have used frames to structure and control the screen content. What is the recommended method in livecode - 'oversize' cards, datagrids, groups? How do I create and group this large collection of items, and control them?!

Any advice on the best way to structure this would be appreciated, thankyou.

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

Re: How to layout & control a scrollable app/program

Post by Simon » Tue Jan 15, 2013 8:33 pm

Hi Tom,
Look here:
http://lessons.runrev.com/s/lessons/m/4 ... the-window
While they just put an image in a group you can put lots of objects into a group and scroll them all.

But you most likely want AndroidScroller, it's in the dictionary, and here:
http://forums.runrev.com/viewtopic.php? ... 141#p62803
While it says iOS he uses the mobileControl format (not iPhoneControl) which is Android as well

In your project you say you have right and left panels that remain still, I'll leave that up to you for investigative fun.

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

Tom4c
Posts: 8
Joined: Mon Feb 07, 2011 4:44 pm

Re: How to layout & control a scrollable app/program

Post by Tom4c » Thu Jan 17, 2013 11:28 am

Thanks Simon,

They're very useful pointers that will get me started (and save me time). I shall investigate further :D

Post Reply