Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > screen resolution changes

screen resolution changes
Thread Tools
tie
Professional Poster
Join Date: Feb 2001
Status: Offline
Reply With Quote
Apr 25, 2001, 03:49 PM
 
My app responds poorly to screen resolution changes. For example, if I have a window with origin (0,0) -- the lower-left hand corner of the screen -- and I up the resolution, the origin becomes (0, -45). Also, when the window is to the top or to the right of the screen and I drop the screen resolution, my window will often disappear off the screen. When I increase the resolution again it usually goes back to its old position (but sometimes the origin is reset to (0,0)).

I would like to fix this. Basically, after the screen resolution changes, I would like my app to notice it and move the window onto the screen, with the same position relative to the closest window borders as it had before the resolution change. So, for instance, if the window is in a corner before the resolution change, it will have the same position relative to that corner after the resolution change.

How can I do this? Is there a delegate method I've missed that notifies me when the screen resolution changes? Should I be constantly checking whether [[NSScreen mainScreen] frame] has changed? Should I ignore the problem, since most of the applications I have seen don't handle resolution changes very well?

A somewhat related question is: What, if anything, should I do to support multiple montors? I only have one monitor, so this is going to be hard to test.
The 4 o'clock train will be a bus.
It will depart at 20 minutes to 5.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:26 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2