this group, versus this background (Jim Hurley)
Jo ë l Guillod
joel.guillod at net2000.ch
Tue Apr 20 11:59:32 EDT 2004
Ken,
Your approach is dangerous when you have multiple groups with the same name.
Personnaly I use "the long owner" or "the abbr id of the owner" which
uniquely identify the group.
Another solution I implemented recently is to have a "group factory" handler
which is responsible to clone the group and to rename the new group by
suffixing it with an index number.
Joel Guillod
> I can't answer why Rev does what it does, but you can refer to the group
> that "owns" the objects it contains by asking for "the owner" of the object.
> For example, if you click on one of your graphic controls, and the script
> says:
>
> on mouseUp
> put the short name of the owner of me into tGroupName
> -- etc.
> end mouseUp
>
> ... you'll get the name of the group (since the "owner" of the graphics is
> the group).
More information about the use-livecode
mailing list