SOLVED - Place other controls inside a container

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
admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

SOLVED - Place other controls inside a container

Post by admin12 » Tue Jul 05, 2011 2:59 pm

I need to make a form that will be larger than the size of the app. Besides the tab (I don't want the tabs at the top), what other control is a container for other controls - and one that scrolls?

Mike
Last edited by admin12 on Mon Aug 01, 2011 6:50 am, edited 1 time in total.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: What control will allow me to place other controls inside it

Post by Klaus » Tue Jul 05, 2011 3:19 pm

Hi Mike,

a "group"! :)

1. Create all your objects
2. Group them
3. Set the size of that group to the rect of the card/stack
4. Set its "lockloc" to true!!!
5. Add scrollbars (h and v)
6. Add this script to the card that holds your group:

Code: Select all

on resizestack
  set the rect of grp "your group here" to the rect of this cd
end resizestack
7. Done

Please check these stacks here to get the basics of LiveCode:
http://www.runrev.com/developers/lesson ... nferences/


Best

Klaus

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: What control will allow me to place other controls inside it

Post by admin12 » Tue Jul 05, 2011 10:26 pm

Thank you. I will work on that later today.

Mike

BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: What control will allow me to place other controls inside it

Post by BarrySumpter » Wed Jul 06, 2011 12:33 am

Just a curious question here.

Are there any real contiainer contols in LiveCode.
Not the grouping effect.

Like in VB when I use the tab control
I can place other controls on each and every tab
and they stay there when I move the tab control around.

Or perhaps a container control is just a "concept" and the IDE in VB makes it look like a container.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: What control will allow me to place other controls inside it

Post by Klaus » Wed Jul 06, 2011 1:08 pm

Hi Barry,

no "real" containers in LiveCode!
Or perhaps a container control is just a "concept" and the IDE in VB makes it look like a container.
Probably, and it obviously works :D


Best

Klaus

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: What control will allow me to place other controls inside it

Post by admin12 » Thu Jul 07, 2011 3:32 am

That's why I was asking. I program in VB and was used to the way of doing things with Microshaft's IDE. This is just different and takes getting used to.

Mike

admin12
Posts: 412
Joined: Wed May 11, 2011 9:47 am

Re: What control will allow me to place other controls inside it

Post by admin12 » Fri Jul 08, 2011 6:28 am

Another question. Once I group my controls that fit on screen and place a scrollbar, will I then be able to scroll down, add more fields and then re-group them? The forms will be bigger than one screen size and I cannot size my window larger than my screen. I need to do this graphically and not through programming. Could someone outline how I would do this, as my brain is not wrapping around it very well.

Thanks.

Mike

Post Reply