Re: Disable text field as label
Re: Disable text field as label
- Subject: Re: Disable text field as label
- From: Stephane Sudre <email@hidden>
- Date: Thu, 21 Apr 2005 13:59:47 +0200
On 21 avr. 05, at 12:35, Andy Usher wrote:
Hi,
Does anyone know how to get NSTextField to 'gray out' when disabled,
other than to explicitly set the color, when used as a text label (ie
dragged on as 'Label Font Text' in IB).
I've tried setting it as disabled in both IB and programatically but
every time it comes up with 100% black text color?
Obviously all's well when used for text input, but when I'm making
labels there seems to be no way to gray out!
Any ideas?
You could subclass NSTextField to draw the text in gray when the
control/cell is disabled.
Now, the HIG behavior for a label is to stay black AFAIK.
_______________________________________________
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