Sign in Join
FPDoc Onlineexperiment

TControl.GetRGBColorResolvingParent function

Member of TControlpublicIn unit Controls

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

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.