IGxColorClass.FromThemeColor

Fore Syntax

FromThemeColor(ThemeColor: GxThemeColor): IGxColor;

Fore.NET Syntax

FromThemeColor(ThemeColor: Prognoz.Platform.Interop.Drawing.GxThemeColor): Prognoz.Platform.Interop.Drawing.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