Palette window "stuck" at screenloc? -sb-OS
Sannyasin Sivakatirswami
katir at hindu.org
Mon Nov 24 16:43:29 EST 2003
Monte: Thanks you got it... the preopenstack handler of the main stack
had this:
set the loc of this stack to the screenloc
which of course applied to ALL stacks being opened... so I changed that
to just
set the loc of stack "dws Youth" to the screenloc ## the name of the
mainstack itself
and now the palette behaves as expected. I can simply set it to the
position I want, save the stack and build the standalone and it appears
where it should without the necessity of setting it's location.
Thanks
On Nov 23, 2003, at 7:43 PM, Monte Goulding wrote:
> I don't think there's an at modifier for the palette command??? At
> least
> it's not in the docs. If it's a substack you might want to check the
> mainstack positioning script isn't getting triggered. don't forget
> that the
> engine opens windows automatically where they were on the last save so
> you
> may not need to position the window with script. It could be it's just
> a
> message path issue.
>
> Cheers
>
> Monte
>
sivakatirsswmai 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
>
More information about the use-livecode
mailing list