Skip to main content

TcxCustomColorComboBoxProperties.MaxMRUColors Property

Specifies the maximum number of items that can be displayed within the most recently used list.

Declaration

property MaxMRUColors: Byte read; write; default 10;

Property Value

Type Default
Byte 10

Remarks

Color combo boxes provide a most recently used items list to end-users. This feature means that each time an item is selected, it is moved to the top of the most recently used list, located at the top of the dropdown. The number of items in this list grows each time a new item is selected until the number of items is equal to the MaxMRUColors property value. When the maximum number is achieved, selecting a new color deletes the oldest item from this list.

The images below show the behavior of the color combo box when selecting three items sequentially with MaxMRUColors set to 2. First, gray is selected and added to the most recently used list. Next, maroon is selected and appears at the top of the list. When white is then selected, gray is removed from the list (since only two colors are allowed in the MRU).

Set the MaxMRUColors property to 0 to disable the ‘most recently used list’ feature.

Note

You can access the most recently used list of colors via the MRUColors property.

The default value of the MaxMRUColors property is 10.

See Also