[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.GetRGBColorResolvingParent

Returns a RGB value for the color used on the control.

Declaration

Source position: controls.pp line 1680

public function TControl.GetRGBColorResolvingParent: TColor;

Description

GetRGBColorResolvingParent is a convenience routine used to get an RGB color value for the background on the control. It calls GetColorResolvingParent to translate the clDefault color value to the Brush color in a Parent control. It calls ColorToRGB to convert a color constant to its numeric equivalent and to remove any alpha channel information in the color value.

See also

TControl.Color

  

The background color for the control.

TControl.ParentColor

  

Use the Color from the Parent control, when enabled.

TControl.GetDefaultColor

  

Gets the default color for the control.

TControl.GetColorResolvingParent

  

Returns the color of the control while resolving clDefault and ParentColor.

ColorToRGB

  

Converts a TColor value to an RGB color constant.


Version 3.2 Generated 2024-02-25 Home