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.MRUColors Property

Provides access to the color values most recently used.

#Declaration

Delphi
property MRUColors: TcxColorComboBoxItems read; write;

#Property Value

Type
TcxColorComboBoxItems

#Remarks

If the MaxMRUColors property value is greater than zero, the color combo box control provides a ‘most recently used list’ feature. When a color is selected, it is moved to the top of the most recently used list (displayed at the top of the dropdown window above the main list). This feature is very helpful to end-users when they need to use a limited number of colors frequently. Selecting a color will move it to the top of the list, so the end-users will not have to spend time finding it again.

The MRUColors property allows you to access the list of items currently stored within the most recently used list. This property can be used, for instance, to populate this list with colors at application startup.

The MRUColors property can also provide a common ‘most recently used list’ for several color combo boxes. To do this, you must track changes to the list of each editor and store them in a global list. When a color combo box dropdown is opened, you simply need to assign the global list to its most recently used list. The changes to the most recently used list can be tracked using the OnAddedMRUColor and OnDeletedMRUColor events. See their description for an example of implementing a common list.

See Also