Dear Francis,
Please, stay away from my screen. it is MY screen and NOT yours. You
simply have no right to change the system settings of my or anyone
else's computer. Of course, this message isn't only meant for you, but
for anyone who thinks of changing someone else's screen rect. Please,
don't do it.
Instead, you should detect the screensize and resize your stack window
and the objects in it to accommodate the screensize. Never do the
oppositem don't change the screen rect.
You should also take into account the possibility that the user
changes the screen resolution while your application is running. For
this, you can catch the desktopChanged message and adjust the window
and object sizes again (and indeed, you need to check the
windowBoundingRect and (working) screenRect(s) too).
Now, if you're really still not convinced, I can tell you there are a
few command line utilities, but they need to be updated every now and
then, because they can't cope with the many different screens and
screen resolutions available these days. I believe it is possible to
use the terminal or applescript on Mac OS X, but I haven't seen a good
working solution.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum
Please visit <http://tinyurl.com/d6ojex> and click on "Stem" --Thank
you!
On 23 feb 2009, at 00:14, Francis Nugent Dixon wrote:
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
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution