Why do group ID's change when cloning a stack
Claudi Cornaz
claudi.c at fiberworld.nl
Fri Aug 11 10:29:48 EDT 2006
Hi all,
By accident I just discovered that group ID's change when you clone a
stack.
This can be very annoying when you work with tmplt stacks which you
clone to use as, lets say a document or a viewer.
I just did some testing, but button id's don't seem to change.
Neither the id's of fields. But sure enough group id's do change,
altough
always in the same way. They start with the highest group id in the
stack you clone
incremented by one and so further up. Why?
Why only groups. (well to be honest I didn't try with all controls,
so there might be other controls who's id will also get changed when
cloning a stack.
This is a real nuissance for me since I rely heavilly on group id's in
the stuff
I am making now, which will get used as a tmplt stack and thus gets
cloned for actual
use. Lots of nested grps and I designed it around the id's, because
that's safer
there might be duplicate names. But it seems now I can't use the id's
because they pull the rug underneath my feet when cloning the stack for
use.
This is in rev 2.7.2 (OsX)
Am I missing something. Is it supposed to behave like that, is this a
bug?
I have no idea except that this is gonna cost me quite some work and
planning
of a new strategie to get this working as it should. Damn (lots of
rewrites in several
library's) Well you do learn each day, but it is tough going like this.
If somebody can shed some light on this dark matter, at least it is for
me, please do.
Best wishes
Claudi
More information about the use-livecode
mailing list