clone opens off the screen

Richard Gaskin ambassador at fourthworld.com
Mon Jan 3 17:38:48 EST 2005


Bob Hartley wrote:
> Hi All
> 
> I have a button with a script that clones a stack, but when I press the 
> button in browse the cloned version of the stack opens up off the top of 
> the screen. How do I get it to open visible.
> 
> I assume the way to do this would be to have the centre of the stack 
> open in the centre of the screen but I assumed that cloning a stack 
> would automatically open it in the visible screen.
> 
> How do I ensure that the window opens visible?

Not sure why it's opening oddly, but to ensure it's centered on any 
monitor this should work:

on preOpenStack
   set the loc of me to the screenLoc
end preOpenStack

--
  Richard Gaskin
  Fourth World Media Corporation
  __________________________________________________
  Rev tools and more: http://www.fourthworld.com/rev


More information about the use-livecode mailing list