If you have a known number of buttons in the group you can set the layer to the layer of the group + the number of controls group - layer 10 - button 1 - layer 11 - button 2 - layer 12 - button 3 - layer 13 button script on mouseUp set the relayerGroupedControls to TRUE set the layer of me to (the layer of group "toolbar" + 3) end mouseUp