|
|
|
|
SysColor (Function) In french: SysCouleur Identifies or modifies the color of a Windows element.
ResColor = SysColor(scActiveCaption)
Syntax
Identifying the color of a Windows element Hide the details
<Result> = SysColor(<Windows element>)
<Result>: Integer Color of the specified element in RGB format. To retrieve the color components, use RGBBlue, RGBRed and RGBGreen. <Windows element>: Constant Windows element to use: | | scActiveBorder | Border of active window. | scActiveCaption | Title bar active. | scAppWorkSpace | Workspace of MDI applications. | scBackground | Desktop. | scBtnFace | Border of the button. | scBtnHighLight | Selected button (corresponds to the 3D buttons of Windows 95). | scBtnShadow | Shadow of buttons. | scBtnText | Text of text buttons. | scCaptionText | Text of title bar. | scGrayText | Grayed text (returns zero if the display driver contains no grayscale). | scHighLight | Background of selected object. | scHighLightText | Text of selected object. | scInactiveBorder | Border of inactive window. | scInactiveCaption | Title bar inactive. | scInactiveCaptionText | Title bar inactive. | scMenu | Background of menus. | scMenuText | Text of menus. | scScrollBar | Scroll bar. | scWindow | Background of window. | scWindowFrame | Border of the window. | scWindowText | Text of window. |
Remarks The color depends on the number of colors used by the system and on the screen resolution. This number of colors is returned by SysColorRes.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|