Palette window "stuck" at screenloc?

Wilhelm Sanke sanke at hrz.uni-kassel.de
Mon Nov 24 09:50:52 CST 2003


On  Sun, 23 Nov 2003,  Sannyasin Sivakatirswami <katir at hindu.org> wrote:

> I am have created a small palette stack with a table of contents in a
> field
>
> If I move the palette and close it, then reopen it by script... it
> opens at the screenloc... right on top of the main presentation, dead
> center on the screen.
>
> I can't seem to change this behavior. The goal is to get the palette to
> open with the top left of its rect just under the topleft of the main
> presentation window. Then allow the user to move it off the main
> presentation window if he wants to later, but certainly not right on
> top over   the main window.
>
> case "table of contents"
>    palette "toc" at 200,200
>    break
>
> doesn't work...
>
> I think I am missing something simple here, but couldn't find it in the
> docs.
>
>
> Sannyasin Sivakatirswami



You can set the loc of the palette stack before you open it with the 
palette command:

"case "table of contents"
   set the topleft of stack "toc" to the topleft of this stack
   palette "toc"
   break"

Regards,

Wilhelm Sanke




More information about the use-livecode mailing list