Skip to main content

TcxCustomFontNameComboBoxProperties.MaxMRUFonts Property

Specifies the maximum number of fonts that can be displayed within the MRU font list.

Declaration

property MaxMRUFonts: Byte read; write; default 10;

Property Value

Type Default
Byte 10

Remarks

The cxFontNameComboBox control supports a most recently used (MRU) font list. This list is displayed within a special control region known as the hot-pick area. The fonts displayed in this hot-pick area are controlled by the TcxMRUFontNameItems collection. Use the MRUFontNames property of the TcxFontNameComboBox to access the MRU font list programmatically.

The MaxMRUFonts property specifies the maximum number of fonts that can be displayed within the MRU font list. If you wish to disable the MRU area, assign 0 to the MaxMRUFonts property.

MaxMRUFonts is set to 3 MaxMRUFonts is set to 6

A font name is added to the MRU font list when a user selects a font within the combo box. If this font name already exists in the MRU list, then the selected name is placed at the top of the MRU list. The same happens when the MRU list is completely populated (the number of fonts within it has reached the MaxMRUFonts property value) and a user selects another font within the combo box. You can use the AddMRUFont and DelMRUFont methods to manage the MRU font list programmatically.

The default value of the MaxMRUFonts property is 10.

See Also