IGxColorClass.FromThemeColor

Syntax

FromThemeColor(ThemeColor: GxThemeColor): IGxColor;

Parameters

ThemeColor - element, for which the color is determined in the theme.

Description

The FromThemeColor method returns the color that is a predetermined one for the specified component by the current theme.

Example

Sub UserProc;
Var
    Color: IGxColor;
Begin
    Color := GxColor.FromThemeColor(GxThemeColor.ActiveCaption);
End Sub UserProc;

After executing the example the Color variable contains the background color of the string header of the active window that is determined by the current theme.

See also:

IGxColorClass