Re: NSButton geometry
Re: NSButton geometry
- Subject: Re: NSButton geometry
- From: Clark Mueller <email@hidden>
- Date: Thu, 5 Sep 2002 13:37:43 -0600
Drop shadows? Square buttons don't have them, but progress indicators
and regular buttons have a small one...
-c
On Thursday, September 5, 2002, at 01:30 PM, Steve Green wrote:
Gurus,
I am writing some NSView subclasses that do geometry management for
it's
subviews. I have come across some strange behaviour when I try to
manipulate NSButtons (default look).
When I create an NSButton with IB, the height of the button is fixed at
17 (as I recall). In my NSView subclass, I query the frame of the
button and it's wrong. I have also used gdb to inspect the subview
itself. The frame size is wrong. As I recall, the reported frame
height is 26 (or 27). Assuming I do nothing at this point, the button
continues looks fine, and it looks like it's about 17 pixels high.
When
my view tries to manipulate the button (e.g. move it), the button gets
distorted. Just for fun, I tried [button setFrame:[button frame]] and
the same distortion happens.
If I change the button to a square button, no problems.
Progess indicators also seems to report the wrong size.
What am I missing here?
-Steve
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev
Clark Mueller
email@hidden
---
http://www.finikin.com/
---
Computer programmers don't byte, they nibble a bit.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.