Scrollable Forms

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
mokogobo
Posts: 37
Joined: Wed Jun 18, 2008 6:27 pm
Contact:

Scrollable Forms

Post by mokogobo » Thu Apr 02, 2009 4:45 pm

Hello! :shock:

I'm about to begin a project where I'll have to construct forms (e.g., of text fields, buttons, drop-down menus, etc.), but haven't done this very seriously in the past. To jump-start my research and perhaps gain some direction or insight, I thought I'd ask around to see what others have done.

In particular, I'd like to (1) have a scrollable area that contains form elements on a card (is there a GUI component that allows this?), and (2) automate the creation of the form as much as possible (perhaps by parsing an XML file that describes the forms).

I'll take any suggestions, tips, pointers, warnings, etc. that you can offer, and will greatly appreciate them!

Thanks.

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Post by magice » Thu Apr 02, 2009 5:53 pm

Wow I can actually answer this one!! If you group all of the elements of the form, and look at the property inspector for the group, you will see check boxes to add horizontal and vertical scrollbars.

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Contact:

Scrollable forms

Post by asayd » Fri Apr 03, 2009 6:55 pm

You may also want to wait for Rev 3.5, due out in a few days or weeks. It includes a new Data Grid object that will do much of what you describe.

Devin
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Fri Apr 03, 2009 8:46 pm

Devin's suggestion is an excellent one, but I say do both! :)

The forthcoming DataGrid object is pretty nifty, but having direct hands-on experience with working with groups is a good skillset to acquire anyway. You may find your own group will suffice, and if not then you'll be able to transfer that knowledge to use the new DataGrid when it comes out that much more effectively.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

asayd
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 107
Joined: Mon Apr 10, 2006 7:02 pm
Contact:

Scrollable forms

Post by asayd » Fri Apr 03, 2009 9:03 pm

Well said, Richard, as always. :)

I agree, as useful and powerful as the new DataGrid object is, it will be even more so the better you understand the inner workings of groups. For simple groups, it's a snap to just add scrollbars to enable scrolling content that's too large to display in the available space.

Devin
Devin Asay
Learn to code with LiveCode University
https://livecode.com/store/education/

Post Reply