Behavior changing layer

Shao Sean shaosean at wehostmacs.com
Sun May 30 08:40:44 EDT 2010


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




More information about the Use-livecode mailing list