Page 1 of 1
SOLVED - Place other controls inside a container
Posted: Tue Jul 05, 2011 2:59 pm
by admin12
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
Re: What control will allow me to place other controls inside it
Posted: Tue Jul 05, 2011 3:19 pm
by Klaus
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
Re: What control will allow me to place other controls inside it
Posted: Tue Jul 05, 2011 10:26 pm
by admin12
Thank you. I will work on that later today.
Mike
Re: What control will allow me to place other controls inside it
Posted: Wed Jul 06, 2011 12:33 am
by BarrySumpter
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.
Re: What control will allow me to place other controls inside it
Posted: Wed Jul 06, 2011 1:08 pm
by Klaus
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
Best
Klaus
Re: What control will allow me to place other controls inside it
Posted: Thu Jul 07, 2011 3:32 am
by admin12
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
Re: What control will allow me to place other controls inside it
Posted: Fri Jul 08, 2011 6:28 am
by admin12
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