group strangeness
Klaus Major
klaus at major-k.de
Mon May 24 10:18:50 EDT 2004
Hi folks,
can someone eventually shed some light on this strange thing?
(I often noticed some kind of strangeness with groups, especially with
nested groups...)
I have 640 images (80*60 pixel max., 5 in a row) in a scrollable group
"bilder"...
Now when i use this script to "initialize" all of them, the images move
to something
like -71,-8156 or so...? :-(
Totally out of order/misplaced and thus completely useless...
I even added the lines with the loc to remember and set again
correctly, no way!!!
on mouseUp
lock screen
repeat with i = 1 to the num of images of grp "bilder"
put the loc of img i of grp "bilder" into altloc ## !!
set the showborder of img i of grp "bilder" to false
set the dateiname of img i of grp "bilder" to empty
hide img i of grp "bilder"
set the loc of img i of grp "bilder" to altloc ##!!
end repeat
unlock screen
end mouseUp
I tried several times and finally found that the line
-> hide img i of grp "bilder"
is the "evil prince"!!!
No problems without this line...
So how can simply hiding an image offset it so far away from its
original loc???
Is it a bug?
Thanks for listening :-)
Addendum!!!
Some more test showed that there are NO problems when using:
repeat with i = the num of images of grp "bilder" DOWN TO 1 ###!!! ???
...
hide img i of grp "bilder"
...
end repeat
??????????? Geeeeeez!!!!
To me it looks like the "repeat-loop" is actually SCROLLING the group to
reach the "lower" images???? (Probably not, i know ;-)
Regards
Klaus Major
klaus at major-k.de
www.major-k.de
More information about the use-livecode
mailing list