[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] screen resolution / screenBounds



Why not just this? Creating a new SCWindow is superfluous if all you want is the width and height.

Occam's Razor, folks! Cut out unnecessary complication.

w = SCWindow.screenBounds;
w = [w.width, w.height]

hjh

On Mar 5, 2006, at 3:00 PM, Tom Hall wrote:

Hello List

is there a simpler / more elegant way?

w = SCWindow(bounds:SCWindow.screenBounds).bounds;

w = [w.width, w.height]

: H. James Harkins
: jamshark70@xxxxxxxxxxxxxxxxx
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman