Position of window on screen
Position of window on screen
- Subject: Position of window on screen
- From: Paul Harvey <email@hidden>
- Date: Mon, 30 Jan 2006 11:20:32 +0000
I'm trying to find the origin/position of a window with respect to
the screen it's on. Using the 'frame' property of the window always
returns 0.0 as the origin. Is this is because it's with respect to
itself? How can I get it's position with respect to the bottom-left
of the screen?
And with multiple screens, I understand that the coords of the bottom
left is with reference to the main screen, ie, each screen does not
have 0,0 as it's bottom-left point. If so, then I should be able to
tell which screen my window is on by taking the respective screen
position of the window, and using the pixel dimensions of the screens
to work it out, is that right?
Thanks.
--
Paul Harvey
Lead Programmer
email@hidden
Hiddenfield Software
"Creating useful software for Mac OS X"
www.hiddenfield.com
_______________________________________________
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