Skip to main content

TcxCustomColorComboBoxProperties.PrepareX11OrderedColorList(Boolean,Boolean) Method

Populates the color combo box with the set of the ordered X11 colors.

Declaration

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

Parameters

Name Type
ASaveCustom Boolean
ASaveMRU Boolean

Remarks

Use the PrepareX11OrderedColorList method to populate the color combo box with standard colors used in the X11 environment. The method clears the displayed items list and then adds the colors from the X11 set (descriptions are also assigned to items using the corresponding naming convention). The colors are sorted so that the shades of the same color are positioned near each other.

To populate the color combo box control with colors from another predefined set, use the PrepareDelphiColorList, PrepareHTML4ColorList or PrepareX11ColorList 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 an ordered list of the X11 colors:

See Also