move a palette stack along with another stack

Roger.E.Eller at sealedair.com Roger.E.Eller at sealedair.com
Thu Jan 4 14:05:23 EST 2007


On 01/04/2007 at 01:14 PM, Chris Sheffield wrote:
> Does anyone know if it's possible to do this in real time?

On Windows, the pallette will smoothly follow the main window. On OS X, 
the pallette will snap to the main window when the mousebutton is released 
(after dragging). As far as I know, this is an OS level behavior.

Just add this to your stack script:  (modify position as needed)

on moveStack
  set the topLeft of stack "myPallette" to (item 1 of the topRight of 
me)+10,(item 2 of the topRight of me)
end moveStack

Roger Eller <roger.e.eller at sealedair.com>




More information about the use-livecode mailing list