System Colors

System—or logical—Colors differ to Standard Colors in that the actual RGB color is determined from the settings on the machine.

So, for instance, if you wanted a dbForm to have the same background color as other Windows controls that accepted user-input, you would set the color to clWindow. This color is usually white, but by setting it to clWindow, the color will automatically change whenever the user changes the colors on their machine. If you had set it to the clWhite Standard Color, it would always appear white, regardless of the colors configured on the machine.

All the System Colors have symbols representing their usage. Use clWindow when you want to use the color known as "Window" in the Windows configuration; similarly, clWindowText maps to "Window Text" and clBtnFace maps to "Button Face" – which is the color used by Windows for all 3-d objects.

Here is the list of symbols you can use:

clScrollBar

clHighlight

clBackground

clHighlightText

clActiveCaption

clBtnFace

clInactiveCaption

clBtnShadow

clMenu

clGrayText

clWindow

clBtnText

clWindowFrame

clInactiveCaptionText

clMenuText

clBtnHighlight

clWindowText

cl3dDkShadow

clCaptionText

cl3dLight

clActiveBorder

clInfoText

clInactiveBorder

clInfoBk

clAppWorkSpace

 

 

See Also

Understanding RGB Colors