Dumb Window size Question
Alex Tweedly
alex at tweedly.net
Sat Feb 18 06:45:39 EST 2006
stomfi wrote:
> I'm using a runrev runtime on a Linux Live CD.
> Depending on the platform, the live CD sets the screen size from the
> capabilities of the video card, using a frame buffer.
> This can be any valid size from 1200x1024 to 640x480.
>
> I can easily find out the screen size with the xwininfo shell tool.
>
> I want to know how I can tell my runrev windows and all objects on
> them to scale for these different screen sizes.
>
use the Transcript function screenRect() - reasonable description in
the docs.
Note that as well the the screenRect, you should also look out the for
windowBoundingRect() - it's possible to restrict the space your windows
use to keep the menu bars out of the way.
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006
More information about the use-livecode
mailing list