how to ungroup a group of one

Slava Paperno slava at lexiconbridge.com
Thu Jul 7 02:35:55 EDT 2011


I have somehow created a group that contains one object, a button. I think I
grouped two objects and then  deleted one of them or something. Anyway, this
group that contains one button is indestructible. Clicking the Ungroup
button when it is selected, or using the "ungroup group id X" command
displays no errors, but the group is still there.

To make it even funnier, that indestructible group is a member of another
group:

put the name of control 6 of group "navigation"
--group "UnintendedGroupOfOne"

select control 6 of group "navigation"
ungroup the selectedObjects
put the name of control 6 of group "navigation"
--group "UnintendedGroupOfOne"

This defies what the Dictionary says: "Use the ungroup command to change the
constituents of a group, or to turn grouped controls into card controls."

Any cure for that?

Slava






More information about the use-livecode mailing list