PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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.
Versions 16 and later
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 16
Universal Windows 10 App This function is now available for Windows Phone applications.
Universal Windows 10 App This function is now available for 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 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 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 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 button.
scBtnHighLightSelected button (corresponds to the 3D buttons of Windows 95).
scBtnShadowShadow of buttons.
scBtnTextText of text buttons.
scCaptionTextText of title bar.
scGrayTextGrayed text (returns zero if the display driver contains no grayscale).
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 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: wd270std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment