PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Color
  • Windows XP
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SysColor (Function)
In French: SysCouleur
Identifies or modifies the color of a Windows element.
Windows MobileUniversal Windows 10 App In this version, you can only identify the color of a Windows element.
Versions 16 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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 specified element in RGB format. To retrieve the color components, use RGBBlue, RGBRed and RGBGreen.
<Windows Element>: Constant
Windows element to use:
Versions 16 and later
scAccent
New in version 16
scAccent
scAccent
Color used to highlight a text.
WINDEVReports and QueriesWindows MobileUser code (UMC) This constant is not available. This constant is available in Windows Phone only.
scScrollBarScroll bar.
scActiveBorderBorder of active window.
scBtnFaceBorder of button.
scInactiveBorderBorder of inactive window.
scActiveCaptionTitle bar active.
scInactiveCaptionTitle bar inactive.
scBtnHighLightSelected button (corresponds to the 3D buttons of Windows 95).
scBtnTextText of text buttons.
scAppWorkSpaceWorkspace of MDI applications.
scWindowBackground of window.
scBackgroundDesktop.
scHighLightBackground of selected object.
scMenuBackground of menus.
scBtnShadowShadow of buttons.
scWindowTextText of window.
scGrayTextGrayed text (returns zero if the display driver contains no grayscale).
scMenuTextText of menus.
scHighLightTextText of selected object.
scCaptionTextText of title bar.
scInactiveCaptionTextTitle bar inactive.
scWindowFrameBorder of window.
scScrollBarScroll bar.
Universal Windows 10 App This constant is not available.
scActiveBorderBorder of active window.
Universal Windows 10 App This constant is not available.
scBtnFaceBorder of button.
scInactiveBorderBorder of inactive window.
Universal Windows 10 App This constant is not available.
scActiveCaptionTitle bar active.
scInactiveCaptionTitle bar inactive.
scBtnHighLightSelected button (corresponds to the 3D buttons of Windows 95).
scBtnTextText of text buttons.
scAppWorkSpaceWorkspace of MDI applications.
Universal Windows 10 App This constant is not available.
scWindowBackground of window.
scBackgroundDesktop.
scHighLightBackground of selected object.
Universal Windows 10 App This constant is not available.
scMenuBackground of menus.
Universal Windows 10 App This constant is not available.
scBtnShadowShadow of buttons.
Universal Windows 10 App This constant is not available.
scWindowTextText of window.
scGrayTextGrayed text (returns zero if the display driver contains no grayscale).
scMenuTextText of menus.
Universal Windows 10 App This constant is not available.
scHighLightTextText of selected object.
scCaptionTextText of title bar.
scInactiveCaptionTextTitle bar inactive.
scWindowFrameBorder of window.
Universal Windows 10 App This constant is not available.
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:
scScrollBarScroll bar.
scActiveBorderBorder of active window.
scBtnFaceBorder of button.
scInactiveBorderBorder of inactive window.
scActiveCaptionTitle bar active.
scInactiveCaptionTitle bar inactive.
scBtnHighLightSelected button (corresponds to the 3D buttons of Windows 95).
scBtnTextText of text buttons.
scAppWorkSpaceWorkspace of MDI applications.
scWindowBackground of window.
scBackgroundDesktop.
scHighLightBackground of selected object.
scMenuBackground of menus.
scBtnShadowShadow of buttons.
scWindowTextText of window.
scGrayTextGrayed text (returns zero if the display driver contains no grayscale).
scMenuTextText of menus.
scHighLightTextText of selected object.
scCaptionTextText of title bar.
scInactiveCaptionTextTitle bar inactive.
scWindowFrameBorder of window.
<Color>: Integer
New color for the specified element. This color corresponds 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.
WINDEVReports and QueriesUser code (UMC)

Windows XP

In Windows XP, SysColor does not operate if "Windows XP style" is selected in the "Window and button" option of the display properties of the current computer.
Components
WINDEVReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment