Vcl.Themes.TCustomStyleServices.GetStyleColor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetStyleColor(Color: TStyleColor): TColor;

C++

System::Uitypes::TColor __fastcall GetStyleColor(TStyleColor Color);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Themes.pas
Vcl.Themes.hpp
Vcl.Themes TCustomStyleServices

Description

Returns the color defined in the style for the element specified by Color.

Use GetStyleColor to obtain the color defined for a certain control. For example, if Color is scButtonPressed, GetStyleColor returns the color assigned for the button when it is pressed.

The style colors give you access to the colors used for controls in the current style. There are two categories of style colors. The first category includes colors used for control parts that are rendered directly from an image. In this case, the style color offers you a way to access the color of that image and is purely informational. The second category includes the colors used for controls that are rendered from code at run time (Panel, ListBox, Grid, and so on).

See Also