How to disable/gray an NSTextfield (used as static text)
How to disable/gray an NSTextfield (used as static text)
- Subject: How to disable/gray an NSTextfield (used as static text)
- From: "Sean McBride" <email@hidden>
- Date: Fri, 22 Oct 2004 20:34:06 -0400
Hi,
I am using an NSTextField as a text label (ie not editable nor
selectable). I'd like to 'disable' this textfield so that it appears
gray instead of black.
Obviously, setEnabled:NO does not work. :( I thought to maybe change the
text colour to disabledControlTextColor, but maybe there is a better solition?
I checked the archives, and this has been asked before, but not answered. :)
(Basically, I'm trying to achieve exactly what can be seen in System
Preferences > Energy Saver > Schedule, notice how the word 'at' is grayed
if the 'start up the computer' checkbox is off.)
Thanks!
--
Erroneous google translation: "She does not love pig-turkey, the toys
which make noise and especially the sound of the harmonica..."
_______________________________________________
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