What if you set the layer of the group to top before ungrouping? set the layer of grp "playerGroup" to top
ungroup grp "playerGroup" But, why do you need to ungroup? randy ----- > On Jan 7, 2018, at 9:32 AM, Pyyhtiä Christer via use-livecode > <use-livecode@lists.runrev.com> wrote: > > When setting object layers, how do they work actually? > > The documentation states the higher the number of an object, the control is > higher than the the object it is on. > > This means that in case of two objects on top of each other a mouseClick > would go first to the object with the higher layer number, yes? > > And, it seems to be that not any two objects on a card can exist with the > same layer number, if the objects are not in the same group, right? > > Now if you have objects grouped, and you ungroup them, how to keep them still > above any other layers they are on? For example, you have a set of game > buttons on the board, which you initially group to move them together, and > then you need to ungroup them, and with sequential clocks you want to make > sure the control is with a single button instead of first hitting the > playboard squares, how do you make sure the buttons reside on top of the > board. > > I have experienced that ungrouping may send the individual objects to random > layers. > > > Christer Pyyhtiä > MindCrea Ltd > chris...@mindcrea.com <mailto:chris...@mindcrea.com> > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode