Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomColorComboBoxProperties.PrepareHTML4ColorList(Boolean,Boolean) Method

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

#Declaration

Delphi
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