place the window in the middle of screen?
Klaus Major
klaus at major-k.de
Tue Jul 12 12:47:51 EDT 2005
Hi Ban,
>> Hello,
>>
>> How to place the window in the center of the screen? Please help
> ...
> set the loc of stack "xyz" to the screenloc
> ...
>
> :-)
>
> Should I put this code in the main stack? Where should I put this
> code.
This should go into the stackscript into an "preopenstack" handler
so the window will appear in the middle of the screen:
on preopenstack
set the loc of this stack to the screenloc
...
end preopenstack
> Thank you for your help
You're welcome :-)
Best from germany
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list