Skip to main content

TcxCustomColorComboBoxProperties.PrepareHTML4ColorList(Boolean,Boolean) Method

Populates the color combo box with the default HTML 4 color list.

Declaration

procedure PrepareHTML4ColorList(const ASaveCustom: Boolean; const ASaveMRU: Boolean);

Parameters

Name Type
ASaveCustom Boolean
ASaveMRU Boolean

Remarks

Use the PrepareHTML4ColorList method to populate the color combo box editor with standard HTML4 colors. The method clears the displayed items list and then adds the colors from the HTML4 set (descriptions are also assigned to the items using the corresponding naming convention).

To populate the color combo box control with colors from another predefined set, use the PrepareDelphiColorList, PrepareX11ColorList or PrepareX11OrderedColorList method. See the PrepareDelphiColorList method description for details on using these methods.

The ASaveCustom parameter identifies whether user-defined colors are saved when the new color set is loaded into the color combo box. The ASaveMRU parameter identifies whether the MRU colors list is saved when the new color set is loaded.

The following is a sample color combo box populated with the default HTML 4 colors:

See Also