setting the loc of a cloned window

Ron rbarber at
Fri May 2 03:25:01 EDT 2003

Hi Sarah

I use an expanded version of the following for several sub-stacks in an app
and don't see the wd before it opens. This particular ex. tiles the wd.
Maybe you can try:

on preopenstack
  global newnotecnt
  open inv me
  put the screenloc into themid
  put the last char of newnotecnt into thenum
  put (thenum * 20) -100 into themod
  put themod + item 1 of themid &","& themod + item 2 of themid into newloc
  set the location of me to newloc
end preopenstack

> No, that doesn't fix it. I still see the clone appearing in a different
> place and then moving. The place it appears varies according to the
> size of the original window.
> Sarah
> On Friday, May 2, 2003, at 03:53  pm, Monte Goulding wrote:
>> Set the loc of the original before the clone then you won't get the
>> move.
>> Cheers
>> Monte
>>> Related to the problem of setting the loc of modal dialogs, I have a
>>> problem setting the loc of a cloned stack without it appearing in
>>> another place first.
>>> I have tried locking the screen and making the original invisible but
>>> the clone always appears above and to the right of the original before
>>> moving to where I tell it to go. Does anyone know how to do this
>>> invisibly?

More information about the use-livecode mailing list