|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
oops, i should send this to the whole list :-)
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.
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.
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:
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Student-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.