place the window in the middle of screen?
Ban Nguyen
bann at sunncomm.com
Tue Jul 12 13:05:24 EDT 2005
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Klaus
Major
Sent: Tuesday, July 12, 2005 9:48 AM
To: How to use Revolution
Subject: Re: place the window in the middle of screen?
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
-----> Thanks Klaus it works
More information about the use-livecode
mailing list