Access the System Colors used by Windows

OpenScript ››

PROBLEM

Depending on an end-user's Themes setting, the color of various Windows components vary from machine to machine. How, via OpenScript, can these colors be accessed?


NOTE:

OpenScript is a programming language within ToolBook. It is more powerful than the Actions Editor programming language, however it only works within Native ToolBook. OpenScript does not function within a Web Published lesson.


ANSWER

Starting with ToolBook 2004 SP3, a new function call ASYM_GetSystemColor was added to ToolBook. The function definition is below:




ASYM_GetSystemColor()

Function (TBxxR.SBK)


Syntax


ASYM_GetSystemColor(<system color>)


Parameter


<system color>


The name or index of a system color. Can be one of the following names:



Description

Returns the RGB color value of the specified Windows system color.



KEYWORDS: 22628 P3140




Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle