ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • Color
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SysColor (Function)
In french: SysCouleur
Identifies or modifies the color of a Windows element.
Universal Windows 10 App In this version, you can only identify the color of a Windows element.
Example
// Identify the color of active title bar
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:
scActiveBorderBorder of active window.
Universal Windows 10 App This constant is not available.
scActiveCaptionTitle bar active.
scAppWorkSpaceWorkspace of MDI applications.
Universal Windows 10 App This constant is not available.
scBackgroundDesktop.
scBtnFaceBorder of the button.
scBtnHighLightSelected button (corresponds to the 3D buttons of Windows 95).
scBtnShadowShadow of buttons.
Universal Windows 10 App This constant is not available.
scBtnTextText of text buttons.
scCaptionTextText of title bar.
scGrayTextGrayed text (returns zero if the display driver contains no grayscale).
scHighLightBackground of selected object.
Universal Windows 10 App This constant is not available.
scHighLightTextText of selected object.
scInactiveBorderBorder of inactive window.
Universal Windows 10 App This constant is not available.
scInactiveCaptionTitle bar inactive.
scInactiveCaptionTextTitle bar inactive.
scMenuBackground of menus.
Universal Windows 10 App This constant is not available.
scMenuTextText of menus.
Universal Windows 10 App This constant is not available.
scScrollBarScroll bar.
Universal Windows 10 App This constant is not available.
scWindowBackground of window.
scWindowFrameBorder of the window.
Universal Windows 10 App This constant is not available.
scWindowTextText of window.
WINDEVReports and QueriesUser code (UMC)

Modifying the color of a Windows element Hide the details

SysColor(<Windows element> , <Color>)
<Windows element>: Constant
Windows element to use:
scActiveBorderBorder of active window.
scActiveCaptionTitle bar active.
scAppWorkSpaceWorkspace of MDI applications.
scBackgroundDesktop.
scBtnFaceBorder of the button.
scBtnHighLightSelected button (corresponds to the 3D buttons of Windows 95).
scBtnShadowShadow of buttons.
scBtnTextText of text buttons.
scCaptionTextText of title bar.
scGrayTextGrayed text.
scHighLightBackground of selected object.
scHighLightTextText of selected object.
scInactiveBorderBorder of inactive window.
scInactiveCaptionTitle bar inactive.
scInactiveCaptionTextTitle bar inactive.
scMenuBackground of menus.
scMenuTextText of menus.
scScrollBarScroll bar.
scWindowBackground of window.
scWindowFrameBorder of the window.
scWindowTextText of window.
<Color>: Integer
New color for the specified element. This color can correspond to:
Remarks

Color

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.
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/21/2023

Send a report | Local help