Page 1 of 1

Issues changing layers

Posted: Wed Jun 08, 2016 8:03 am
by 17rag01l
Hey
In the stable version of livecode 8 im having trouble changing the layer of an object/field/etc.. Every time i go in property inspector to do so and click on a different button to save the new layer, it seems to just reset to the previous layer i had it on... Very frustrating. Anyone have any suggestions

Re: Issues changing layers

Posted: Sun Jun 12, 2016 4:53 am
by PBH
I suspect the objects you are trying to re-layer are in a group(s), if that's correct you should ensure 'Select Grouped' is deselected in the menu bar and click on the group, then click 'Edit Group' in the menu bar, now you should be able to change the object's layer within the group. When you've finished click 'Stop Editing' in the menu bar.
If you have nested groups, you will see similar issues, you can only re-layer within 1 group at a time.

Paul

Re: Issues changing layers

Posted: Mon Jun 13, 2016 3:34 pm
by oldummy
I too am having this same problem. I have a group of 6 buttons. They are not the issue as far as I know, but rather the remaining 32 btns that are not grouped.
I am using their numbers in a script, but the numbers have changed and I cannot re-order them without everything reverting back to the wrong number,
??

Re: Issues changing layers

Posted: Mon Jun 13, 2016 4:06 pm
by Klaus
Hi oldummy,

1. welcome to the forum! :D

2.
oldummy wrote:I too am having this same problem. I have a group of 6 buttons. They are not the issue as far as I know, but rather the remaining 32 btns that are not grouped.
I am using their numbers in a script, but the numbers have changed and I cannot re-order them without everything reverting back to the wrong number,
??
There is nothing we can do about this!

This is the disadvantage of not giving your objects a meaningful name and
referencing them by their number or even ID, which can also change.

The only advice I can give: Rename you objects and script again.


Best

Klaus

Re: Issues changing layers

Posted: Mon Jun 13, 2016 4:50 pm
by oldummy
Thank you for the quick reply.

Re: Issues changing layers

Posted: Mon Jun 13, 2016 5:37 pm
by oldummy
Sorry to drag this out, but I tried grouping the btns, and then I could adjust the numbers and layers to my desire, and the scripts using the btn numbers did in fact work.

Re: Issues changing layers

Posted: Mon Jun 13, 2016 5:52 pm
by Klaus
Glad you found a workaround! :D
Nevertheless you will get stuck at some point using only numbers to references objects.