TXTextControl.TXButtonBar.DisplayColor Property

This property gets or sets the display colors of a button bar. By default the display colors depend on sytem colors. With this property all colors can be individually designed. The colors are only used when the button bar's Appearance and Style property has been set to txColorScheme.

Introduced: 15.1.

Syntax

TXButtonBar.DisplayColor(index) [= color]
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

index: Integer
Property value: Long

Limitations

Run time only.

See Also