FROM : Stephane Sudre
DATE : Thu Apr 21 13:59:47 2005
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.
DATE : Thu Apr 21 13:59:47 2005
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.
| Related mails | Author | Date |
|---|---|---|
| Andy Usher | Apr 21, 12:35 | |
| Stephane Sudre | Apr 21, 13:59 | |
| Henry McGilton | Apr 21, 19:17 | |
| James Dessart | Apr 25, 16:20 |






Cocoa mail archive

