PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Color
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.
Universal Windows 10 AppWindows Mobile 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 specified element in RGB format. To retrieve the color components, use RGBBlue, RGBRed and RGBGreen.
<Windows Element>: Constant
Windows element to use:
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.
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 : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment