Page 1 of 1

copy group below existing groups (with scrollbar)

Posted: Mon Nov 24, 2008 8:03 pm
by keyless
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?

Posted: Wed Nov 26, 2008 10:32 pm
by keyless
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

Posted: Wed Nov 26, 2008 11:21 pm
by bn
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

Posted: Thu Nov 27, 2008 6:31 am
by keyless
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.