GetCurrentThemeColor command

The GetCurrentThemeColor command retrieves the value of a color property for the current Windows theme.

 

Syntax

Integer=DisplayElement

PluginSet("PlugIn","Integer")

PluginRun("PlugIn","GetCurrentThemeColor")

PluginGet("PlugIn","RGBColorValue$")

Parameters

DisplayElement

[in] The display element whose color is to be retrieved. This parameter can be one of the following values:

 

15

Face color for three-dimensional display elements and for dialog box backgrounds.

5

Window background color.

4

Menu background color.

2

Active window title bar. Specifies the left side color in the color gradient of an active window's title bar if the gradient effect is enabled.

27

Right side color in the color gradient of an active window's title bar.

3

Inactive window title bar. Specifies the left side color in the color gradient of an inactive window's title bar if the gradient effect is enabled.

28

Right side color in the color gradient of an inactive window's title bar.

8

Text in windows.

17

Grayed (disabled) text.

 

Additional flag values can be located here.

RGBColorValue$

[out] The red, green, blue (RGB) color values of the given element delimited by comma.