<div class="meta" robots="noindex">

</div>

Method

# DisabledTextColor

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Color.DisabledTextColor<color.disabledtextcolor>` as a replacement.

</div>

## Description

The currently selected color for drawing disabled text in a window. By default it is a light gray.

## Usage

*result* = **DisabledTextColor**

| Part   | Type                           | Description                                                              |
|--------|--------------------------------|--------------------------------------------------------------------------|
| result | `Color</api/data_types/color>` | The color used for drawing disabled text in the system's graytext color. |

## Notes

This value is useful when you want to assign the system graytext color to disabled text.

## Sample code

This usage of <span class="title-ref">DisabledTextColor</span> affects the second text string. The code is in the `Paint<canvas.paint>` event of a `Canvas</api/deprecated/canvas>`.

``` xojo
g.DrawString("This is my text", 10,10, 100, False) ' enabled text color

g.ForeColor = DisabledTextColor
g.DrawString("This is my text", 10, 50, 100, False) ' disabled text color
```

## Compatibility

All project types on all supported operating systems.

## See also

`Color.CMY<color.cmy>`, `Color.DarkTingeColor<color.darktingecolor>`, `Color.FillColor<color.fillcolor>`, `Color.FrameColor<color.framecolor>`, `Color.HighlightColor<color.highlightcolor>`, `Color.HSV<color.hsv>`, `Color.LightBevelColor<color.lightbevelcolor>`, `Color.LightTingeColor<color.lighttingecolor>`, `Color.RGB<color.rgb>`, `Color.TextColor<color.textcolor>` functions; `Color</api/data_types/color>` data type
