Changing the screenRect within a stack

Francis Nugent Dixon effendi at wanadoo.fr
Sun Feb 22 18:14:53 EST 2009


Hi from Paris,

I have a stack which has a specific window rect
(don't we all ?).

I want to run the stack on any Mac or PC computer,
but I don't know the current screenRect setting for
my possible target computers, and my stack window
is large enough to provide display problems on other
computers.

Inside preOpenStack using the "get the screenRect"
command, I can judge if the screenRect currently
used on the computer will harbour my stack window.
If the screenRect is not satisfactory, I can request
that the user sets the screenRect using "System
Preferences" on a Mac, or "Control Panel" on a PC,
and then quit my stack. The user can modify the
screenRect and relaunch my stack, but this is a PAIN !

What I REALLY want to do is to know ALL the possible
screenrects for the target computer, change the screenRect
dynamically for the duration of the stack run (choosing
the next highest screenRect in the list which wil accomodate
my window), and reset it back to the original value at the
termination of the stack.

Rev commands can't take me there, but I maybe I can do this
by executing AppleScripts (or the equivalent on a PC)

Anybody solved this problem ? Help gratefully received ...

-Francis

"Nothing should ever be done for the first time !"




More information about the use-livecode mailing list