PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

  • 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.
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.
Reports and Queries 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.
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.
Reports and Queries

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 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.
Reports and Queries

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