# DisplayColor Property

> Gets or sets the display colors of a TXButtonBar by ButtonBarColor index, bbForeColor to bbButtonFrameColor, used when Appearance and Style are txColorScheme.

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

---

This property gets or sets the display colors of a button 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 button bar's [Appearance](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/appearance-property/llms-full.txt) and [Style](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/style-property/llms-full.txt) property has been set to **txColorScheme**.

Introduced: 15.1.

### Syntax

```vbscript
TXButtonBar.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 **ButtonBarColor** enumeration. Possible values are listed in Constants. |

### Constants

Valid values for the index parameter are:

| Constant | Description |
|---|---|
| bbForeColor (0) | Gets or sets the color used for text and the button images. |
| bbBackColor (1) | Gets or sets the background color at the left edge of the button bar. |
| bbGradientBackColor (2) | Gets or sets the background color at the right edge of the button bar. |
| bbSeparatorColorLight (3) | Gets or sets the color of the dark part of a separator. |
| bbSeparatorColorDark (4) | Gets or sets the color of the light part of a separator. |
| bbComboboxBackColor (5) | Gets or sets the background color of the combo boxes. |
| bbButtonBackColorTop (6) | Gets or sets the background color at the top of a button. |
| bbButtonBackColorMiddle (7) | Gets or sets the background color in the middle of a button. |
| bbButtonBackColorBottom (8) | Gets or sets the background color at the bottom of a button. |
| bbButtonHotTrackTop (9) | Gets or sets the background color at the top of a button, if the mouse cursor is over the button. |
| bbButtonHotTrackBottom (10) | Gets or sets the background color at the bottom of a button, if the mouse cursor is over the button. |
| bbButtonSelectedTop (11) | Gets or sets the background color at the top of a button used when the button is selected. |
| bbButtonSelectedBottom (12) | Gets or sets the background color at the bottom of a button used when the button is selected. |
| bbButtonPressedTop (13) | Gets or sets the background color at the top of a button used when the button is pressed down. |
| bbButtonPressedBottom (14) | Gets or sets the background color at the bottom of a button used when the button is pressed down. |
| bbButtonFrameColor (15) | Gets or sets the frame color of a selected or pressed button. |

### 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/txbuttonbar/borderstyle-property/llms-full.txt)
- **Next:** [Enabled Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txbuttonbar/enabled-property/llms-full.txt)
