Group.Remove -- detach object from group (V1.2)
mui.DoMethod(id, "Remove", obj)
This method can be used to detach the specified object from the specified group. After this method returns the specified object will change its state from attached to detached. This means that you could now attach it to another group using a function like Group.Insert or you could free it using mui.FreeObject().

Before you can call this method, you have to put the group into a special state that allows the addition and subtraction of children. This can be done by running the Group.InitChange and Group.ExitChange methods on the respective group object.

id of the group object
id of the object to remove
mui.DoMethod("mygroup", "initchange")
mui.DoMethod("mygroup", "remove", "mychild")
mui.DoMethod("mygroup", "exitchange", false)
The code above removes the child "mychild" from the group "mygroup". You could then attach "mychild" to another group or free it.

Show TOC