How do I make a large scrolling window?
Björnke von Gierke
bvg at mac.com
Sun Apr 11 19:38:36 EDT 2004
The group does not need to be bigger then the window, infact, in this
case, you want the group to be exactly as big as the stack. Then you
set the scrollbar. Very important is to set the lockLoc of the group to
true (on "Size & Position" in the inspector check "Lock Position and
Size").
Now to get things scrolling you could set something within the group to
the target size. For example (use message box for this):
set the loc of image "placeholder" to 10, 4000
now your group is scrollable up to 4000 pixels.
You can also drag your controls within the group around to get things
scrolling, just use the "select grouped controls" mode and drag them
out of bounds.
another aproach could be to generate your "real" controls using a
script:
start editing group "Your groups name here"
put 12,20 into myCoords
repeat for 200 times
create button
set the loc of it to myCoords
--set other properties of it here
add 20 to item 2 of myCoords
end repeat
If this is all too complex for you then just ask again!
On Sonntag, Apr 11, 2004, at 22:58 Europe/Zurich, Graham Samuel wrote:
> ...
> What is not clear is what happens if you want to have the scroll
> distance a lot larger (let's say higher) than the available screen
> size: how do you get to see the far-off parts of the group in order to
> populate it in the first place, using the usual method of positioning
> objects visually?
> ...
More information about the use-livecode
mailing list