SOLVED - Place other controls inside a container
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
SOLVED - Place other controls inside a container
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
Mike
Last edited by admin12 on Mon Aug 01, 2011 6:50 am, edited 1 time in total.
Re: What control will allow me to place other controls inside it
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:
7. Done
Please check these stacks here to get the basics of LiveCode:
http://www.runrev.com/developers/lesson ... nferences/
Best
Klaus
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
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
Thank you. I will work on that later today.
Mike
Mike
-
- Posts: 1201
- Joined: Sun Apr 24, 2011 2:17 am
Re: What control will allow me to place other controls inside it
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.
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.
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.
Re: What control will allow me to place other controls inside it
Hi Barry,
no "real" containers in LiveCode!
Best
Klaus
no "real" containers in LiveCode!
Probably, and it obviously worksOr perhaps a container control is just a "concept" and the IDE in VB makes it look like a container.

Best
Klaus
Re: What control will allow me to place other controls inside it
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
Mike
Re: What control will allow me to place other controls inside it
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
Thanks.
Mike