copy group below existing groups (with scrollbar)

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
keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

copy group below existing groups (with scrollbar)

Post by keyless » Mon Nov 24, 2008 8:03 pm

Any good example stack or code for this...

I've got a place where a user needs to enter a word into a field, and it should create a group of the text entered and two buttons beside it, below previous groups. This collection of groups will have a scroll bar because it will get sort of long (I am aware of the limit when doing this).

I figured out how to do the group collection with scroll bar, and I'm pretty sure what I need to is make a hidden group of field and two buttons, and copy that to the grouped collection. Not sure how to get it be right below the last existing group though.

In looking at the docs it seems it would be something like moving it relative to the bottom of the last group. Is this correct, anyone have some example code?

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Wed Nov 26, 2008 10:32 pm

Hmm not one reply. Would have thought this was a popular thing to do. Anyway I think I found my answer

set topleft of... to bottomleft of....


just wondering now how to add a little space between the two

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Wed Nov 26, 2008 11:21 pm

set topleft of... to bottomleft of....
just wondering now how to add a little space between the two
how about

Code: Select all

put the bottomleft of ... into tbottom
add 2 to item 2 of tbottom -- or whatever space you like
set the topleft of .... to tbottom
is it this what you want?
bernd

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Thu Nov 27, 2008 6:31 am

bn wrote:
set topleft of... to bottomleft of....
just wondering now how to add a little space between the two
how about

Code: Select all

put the bottomleft of ... into tbottom
add 2 to item 2 of tbottom -- or whatever space you like
set the topleft of .... to tbottom
is it this what you want?
bernd

Yes that is looking like exactly what I want to do. Thanks for the assistance.

Post Reply