A complete list of stock colors


The following is a complete list of the stock colors available. These colors can be used to change the background and text colors of a control by assigning them to the BackColor and TextColor properties. These colors can be assigned both at design time within the Forms Designer or under program control. For example, the following would change the background and text colors of the edit control:

.editControl1.BackColor = &.Cyan
.editControl1.TextColor = &.DarkBlue
Black stock_color_e.gif 
Blue stock_color_1.gif 
DarkBlue stock_color_2.gif 
Brown stock_color_3.gif 
Cyan stock_color_4.gif 
DarkCyan stock_color_5.gif 
Default  
Gray stock_color_6.gif 
DarkGray stock_color_7.gif 
Green stock_color_8.gif 
DarkGreen stock_color_9.gif 
Magenta stock_color_10.gif 
DarkMagenta stock_color_11.gif 
Red stock_color_12.gif 
DarkRed stock_color_13.gif 
White stock_color_14.gif 
Yellow stock_color_15.gif 

The following stock background colors are set by the user in the form preferences property tab of the client. It is the color currently in effect for this purpose that is used.

EditUsed for editable fields in DbEdits and grids
EditReadOnlyUsed for read-only fields in DbEdits and grids

The first two of these background stock colors can be set by the user in the Currency preferences property tab of the client.

CurrencyEdit Background color chosen in Preferences for an editable alternate currency
CurrencyEditReadOnly Background color chosen in Preferences for a read-only alternate currency
ConvertedEdit Background color used for a editable alternate currency when converted into the alternate currency by the user clicking the currency button on the title bar
ConvertedEditReadOnly As above but for read-only fields

These stock colors are set using the display applet in the Windows control panel

FaceThe color used for the face of buttons and the background color of dialogs

This stock color varies according to the context of the control. It was introduced in KCML 6.00.

BackgroundThe background color of the item that the control is on (frame control, tab control or the entire dialog). This is similar to making a control transparent, but more efficient as the control is still colored.
See also:

A complete list of stock fonts
A complete list of stock pictures
BackColor
TextColor