Skip navigation.
 
mlRe: Disable text field as label
FROM : Henry McGilton
DATE : Thu Apr 21 19:17:08 2005

On Apr 21, 2005, at 3:35 AM, 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?


What are you really trying to do?  In addition to setting
enabled or disabled, you can set text fields to be editable
and selectable.  Still don't know about the grey colour,
though . . .

    Cheers,
       ........  Henry


===============================+============================
  Henry McGilton, Boulevardier |    Trilithon Software
    Objective-C/Java Composer  |    Seroia Research
-------------------------------+----------------------------
  mailto:<email_removed>  |  http://www.trilithon.com
                                |
===============================+============================

Related mailsAuthorDate
mlDisable text field as label Andy Usher Apr 21, 12:35
mlRe: Disable text field as label Stephane Sudre Apr 21, 13:59
mlRe: Disable text field as label Henry McGilton Apr 21, 19:17
mlRe: Disable text field as label James Dessart Apr 25, 16:20