DelphiDelphiVCLPythonPython GUIWindows

This Is A List of All Colors In DelphiVCL4Python’s Graphic Unit

This Is A List of All Colors in Delphi VCL Graphic Unit

In Delphi VCL, TColor is used to specify the color of a control. It only works for development on Windows.

TColor is used to specify the color of a Windows-only control. It is used by the Color property of many components and by many other properties that specify color values.

The Graphics unit contains definitions of useful constants for TColor. These constants map either directly to the closest matching color in the system palette (for example, clBlue maps to blue) or to the corresponding system screen element color defined in the Color section of the Windows Control panel (for example, clBtnFace maps to the system color for button faces).

If you specify TColor as a specific 4-byte hexadecimal number instead of using the constants defined in the Graphics unit, the low three bytes represent RGB color intensities for blue, green, and red, respectively. The value $00FF0000 (Delphi) or 0x00FF0000 (C++) represents full-intensity, pure blue, $0000FF00 (Delphi) or 0x0000FF00 (C++) is pure green, and $000000FF (Delphi) or 0x000000FF (C++) is pure red. $00000000 (Delphi) or 0x00000000 (C++) is black and $00FFFFFF (Delphi) or 0x00FFFFFF (C++) is white.

If the highest-order byte is zero, the color obtained is the closest matching color in the system palette. If the highest-order byte is one ($01 or 0x01), the color obtained is the closest matching color in the currently realized palette. If the highest-order byte is two ($02 or 0x02), the value is matched with the nearest color in the logical palette of the current device context.

The following table lists the color constants from the Graphics unit. The first two columns list the colors that map to the closest matching color in the system palette, while the last two columns list the colors that are defined in the Windows Control panel:

ValueMeaningValueMeaning
clNoneWhite on Windows 9x, Black on NT.clScrollBarCurrent color for the scroll bar track.
clAquaAquaclBackgroundCurrent background color of the Windows desktop.
clBlackBlackclActiveCaptionCurrent color of the title bar of the active window.
clBlueBlueclInactiveCaptionCurrent color of the title bar of inactive windows.
clCreamCreamclMenuCurrent background color of menus.
clDkGrayDark GrayclWindowCurrent background color of windows.
clFuchsiaFuchsiaclWindowFrameCurrent color of window frames.
clGrayGrayclMenuTextCurrent color of text on menus.
clGreenGreenclWindowTextCurrent color of text in windows.
clLimeLime greenclCaptionTextCurrent color of the text on the title bar of the active window.
clLtGrayLight GrayclActiveBorderCurrent border color of the active window.
clMaroonMaroonclInactiveBorderCurrent border color of inactive windows.
clMedGrayMedium GrayclAppWorkSpaceCurrent color of the application workspace.
clMoneyGreenMint greenclHighlightCurrent background color of selected text.
clNavyNavy blueclHighlightTextCurrent color of selected text.
clOliveOlive greenclBtnFaceCurrent color of a button face.
clPurplePurpleclBtnShadowCurrent color of a shadow cast by a button.
clRedRedclGrayTextCurrent color of text that is dimmed.
clSilverSilverclBtnTextCurrent color of text on a button.
clSkyBlueSky blueclInactiveCaptionTextCurrent color of the text on the title bar of an inactive window.
clTealTealclBtnHighlightCurrent color of the highlighting on a button.
clWhiteWhitecl3DDkShadowWindows 95 or NT 4.0 only: Dark shadow for three-dimensional display elements.
clYellowYellowcl3DLightWindows 95 or NT 4.0 only: Light color for three-dimensional display elements (for edges facing the light source).
  clInfoTextWindows 95 or NT 4.0 only: Text color for tooltip controls.
  clInfoBkWindows 95 or NT 4.0 only: Background color for tooltip controls.
  clGradientActiveCaptionWindows 98 or Windows 2000: Right side color in the color gradient of an active window’s title bar. clActiveCaption specifies the left side color.
  clGradientInactiveCaptionWindows 98 or Windows 2000: Right side color in the color gradient of an inactive window’s title bar. clInactiveCaption specifies the left side color.
  clDefaultThe default color for the control to which the color is assigned.

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Related posts
CodeIDEProjectsPythonWindows

Unlock the Power of Python for Deep Learning with Diffusion Model - The Engine behind Stable Diffusion

CodeIDELearn PythonPythonPython GUITkinter

How To Make More Than 20 ChatGPT Prompts Work With Python GUI Builders And OpenCV Library?

CodeIDEProjectsPythonWindows

Unlock the Power of Python for Deep Learning with Radial Basis Function Networks (RBFNs)

CodeIDELearn PythonPythonPython GUITkinter

How To Make More Than 20 ChatGPT Prompts Work With Python GUI Builders And NumPy Library?

Leave a Reply

Your email address will not be published. Required fields are marked *