FromThemeColor(ThemeColor: GxThemeColor): IGxColor;
FromThemeColor(ThemeColor: Prognoz.Platform.Interop.Drawing.GxThemeColor): Prognoz.Platform.Interop.Drawing.IGxColor;
ThemeColor - element, for which the color is determined in the theme.
The FromThemeColor method returns the color that is a predetermined one for the specified component by the current theme.
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: