Skip to content

Color Anomalies

Checkbox

The Checkbox control contains a square area where the check mark is displayed. This area is not colored with the Color property, but by the "Window" System Color defined on the target machine. The Color property will color the remaining background of the control.

Radio

The Radio control contains a circular area where the radio mark is displayed. This area is not colored with the Color property, but by the "Window" System Color defined on the target machine. The Color property will color the remaining background of the control.

ComboForm

In ComboForms, colors behave differently depending upon the value of the Entry_State property.

  • If this property is False (meaning the user must select a value from the list), the color of the form and the text in it are as expected.
  • If the property is True, the color of the form and its text are defined by the Windows System Color for "Window" and "WindowText" respectively.

In both cases, the drop-down list element of the control also uses the colors defined by the Windows configuration.

Button

You cannot change the color of a button at all. The color is determined by the System Color clBtnFace for the background and clBtnText for the label.

TabDialog

You cannot change the color of a TabDialog at all. The color is determined by the System Color clBtnFace for the background and clBtnText for the labels. However, you can set the background color of each of the pages using the Color property; but you should do this with caution, as it will probably not look right, especially if the user changes their System Colors.

See Also