The button won't do this. You'll need to subclass the button and do
your own drawRect: When you go this, you can set the Image to
scale when resized.
NSTextField's do not work like this. You'll need to dynamically
resize the text. You can set the font for a text field when the
frame for the NSTextField changes size. There is a notification for
this.
Mike
On Feb 17, 2007, at 6:25 PM, Terry Long wrote:
I have this NSButton in IB that is borderless and has an image.
I have it set to resize proportionately to the window when the
window gets resized.
Only problem is the image doesn't resize with it, so my image gets
cut off as the button gets smaller.
Anyone know a way to get this to work?
I also have the same problem with a borderless NSTextField because
the text doesn't get smaller as the text field resizes.
Thanks,
Terry
P.S. I'm using Panther if that matters
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Student-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden