|
From: | UBoss UBoss |
Subject: | Re: NSWindow resize quiestion |
Date: | Mon, 6 Feb 2006 08:10:06 +0000 |
On 3 Feb 2006, at 11:51, UBoss UBoss wrote:
> Hi
> I have folowing problem, when i resize the window with bottom left
> corner. Everything looks ok, but the frame (origin) has wrong
> coordinates.
> Mybe it's a bug in back in XGServerWidnow placeWindow
<snip>
> I think thath else if (move==YES) is wrong, because if i resize the
> widow using bottom left resize bar corner, the window resize and
> moves, but the frame origin position is not updated.
> Can you repair thsi bug or tell me why it's done in this way?
I'm not sure what your problem is ... but I'm guessing it's confusion
between two different window systems.
The origin of an NSWindow (ie a window in GNUstep/Openstep/MacOS-X)
is its bottom left corner and increasing Y-coordinates move up the
screen.
The origin of an X window is its bottom left corner, and increasing Y
coordinates move down the screen.
So if you resize using the bottom left corner the you have both a
move and a resize of the NSWindow ... this is handled by the 'if
(resize == YES)' case (which updates both size and origin).
The 'else if (move == YES)' case will only be executed if you move
the window without resizing it ... in this case we change the origin
but not the frame size.
[Prev in Thread] | Current Thread | [Next in Thread] |