Behavior changing layer

Shao Sean shaosean at wehostmacs.com
Sun May 30 07:40:44 CDT 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