Skip to main content

TcxCustomMRUEditProperties Class

Represents settings specific to MRU editors.

Declaration

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