To make this even simpler, since you already have a button containing the 
script, button “masterscript”, you can just set the behavior of the other 
controls to the button “masterscript”. You do not need to copy the script to 
each button or control. You can do this in the advanced pane of the inspector 
for each button or change your “Apply masterscript” kode to the following:

on mouseUp
   repeat with i = 1 to 14
      set behavior of btn ("Billede" && i) to button id 1069 of stack "OSX push 
style reorder"
   end repeat
end mouseUp

This way you can adjust your script in button “masterscript” and it will 
automatically apply to all the other button, without the need to reapply the 
masterscript.

Regards
Tore Nilsen 


> 8. aug. 2017 kl. 15:45 skrev Michael Kristensen via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> Hi there
> This is a stack that reorder objects like in the osx app bar.
> You drag an object and it pushes the other objects away.
> 
> This might also be interesting for Windows users. I dont know how they do it.
> 
> Please upload if you have improvements.
> 
> Enjoy
> Michael Kristensen
> 
> 
> Here it is:
> http://forums.livecode.com/viewtopic.php?f=8&t=29593
> _______________________________________________
> 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

Reply via email to