How to manage different display resolutions
How to manage different display resolutions
- Subject: How to manage different display resolutions
- From: email@hidden
- Date: Thu, 18 Nov 2004 17:00:28 -0200
Hi,
I am writing an application and it has some NSWwindow objects which at a display
resolution of 1280x1024 are displayed just fine. But when I change my display
resolution to say 1024x768, these windows are displayed in such a way that I
can NOT see their bottom edges and only part of their width is displayed (the
other part is hidden to the left of my display and also to the right and if I
need to see their left and right borders I need to click on the title of the
Windows and drag them to the right or to the left.
I am sure there is a way to know beforehand the resolution being used at the
moment my application gets loaded and also the size of my display. Having said
that, my questions are:
1 - How can I, programmatically, change the coordinates and size of my NSWindow
object(built with Interface Builder) at the moment my application is loaded?
2 - On my Window's content view I have an object which is a subclass of an
NSView class and its size is based on my Window size. If I, programmatically,
change my Window's coordinates and size, will its coordinates and size be
changed too, in order to reflect the new display resolution?
3 - What about some buttons which are displayed on my Window's content view? How
can I change their coordinates and sizes programmatically in order to reflect
the new display resolution?
My application is working really fine if the user has a screen resolution of
1280x1024. Otherwise, the user will have trouble in order to see data displayed
on several Windows.
Thanks for any help on that.
Marcos
___________________________________________________________________________________
Acesse nosso portal www.click21.com.br
Porque internet grĂ¡tis, nem a Embratel pode fazer mais barato. Mas pode fazer melhor.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden