# DisplayColor Property

> Gets or sets the display colors of a TXStatusBar by StatusBarColor index, from sbForeColor to sbSeparatorColorDark, for the color scheme appearances.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXStatusBar > DisplayColor Property
- **705 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/displaycolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/displaycolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/displaycolor-property/llms-full.txt

---

This property gets or sets the display colors of a status bar. By default the display colors depend on system colors. With this property all colors can be individually designed. The colors are only used when the status bar's [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbColorScheme** or **sbVerticalColorScheme**.

Introduced: 15.1.

### Syntax

```vbscript
TXStatusBar.DisplayColor(index) [= color]
```

### Parameters

| Parameter | Description |
|---|---|
| index | Determines the index of the display element the color of which is changed. It must be a value of the **StatusBarColor** enumeration. Possible values are listed in Constants. |

### Constants

Valid values for the index parameter are:

| Constant | Description |
|---|---|
| sbForeColor (0) | Gets or sets the color used for text and numbers. |
| sbBackColor (1) | Gets or sets the background color at the left edge of the status bar. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbColorScheme**. |
| sbGradientBackColor (2) | Gets or sets the background color at the right edge of the status bar. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbColorScheme**. |
| sbFrameColor (3) | Gets or sets the color of the status bar's frames. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbColorScheme**. |
| sbBackColorTop (4) | Gets or sets the background color at the top of the status bar. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbVerticalColorScheme**. |
| sbBackColorMiddle (5) | Gets or sets the background color in the middle of the status bar. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbVerticalColorScheme**. |
| sbBackColorBottom (6) | Gets or sets the background color at the bottom of the status bar. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbVerticalColorScheme**. |
| sbSeparatorColorLight (7) | Gets or sets the color of the dark part of a separator. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbVerticalColorScheme**. |
| sbSeparatorColorDark (8) | Gets or sets the color of the light part of a separator. This color is only used, if the [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/appearance-property/llms-full.txt) property has been set to **sbVerticalColorScheme**. |

### Data Types

| Name | Data type |
|---|---|
| index | Integer |
| Property value | Long |

### Limitations

Run time only.

### See Also

- [Programming Category: Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt)

---

## Nearby

- **Previous:** [BorderStyle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/borderstyle-property/llms-full.txt)
- **Next:** [Enabled Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/enabled-property/llms-full.txt)
