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

TcxCustomMRUEditProperties Class

Represents settings specific to MRU editors.

#Declaration

Delphi
TcxCustomMRUEditProperties = class(
    TcxCustomComboBoxProperties
)

#Remarks

An MRU editor maintains a list of Most Recently Used items within a dropdown window. Various settings for editors are set via the Properties member of a corresponding editor class (for instance, TcxCustomMRUEdit.Properties).

TcxCustomMRUEditProperties extends functionality of the TcxCustomComboBoxProperties class, which introduces the settings controlling the dropdown list behavior. The MaxItemCount property specifies the maximum number of items displayed by the list. When this property is assigned a value greater than 0, you can handle the OnDeleteLookupItem event to implement your own custom logic before an MRU editor removes the last item from the dropdown list. Use the LookupItems property to access this list. To add items, call the AddItem method.

By default, an MRU editor contains two buttons: a down-arrow button and an ellipsis (…) button. The down-arrow button allows a user to open the dropdown list. The ellipsis button does not provide any built-in functionality. When a user clicks this button, the OnButtonClick event is generated. Handle the OnButtonClick event to implement the required behavior as your needs dictate. It is possible to hide the ellipsis button by setting the ShowEllipsis property to False.

See Also