Skip to main content

TcxCustomDropDownEditProperties.ButtonGlyph Property

Specifies the custom glyph for the drop-down button.

Declaration

property ButtonGlyph: TdxSmartGlyph read; write;

Property Value

Type Description
TdxSmartGlyph

The Smart Image container for the custom drop-down button glyph.

Remarks

Users can click the drop-down button to invoke the drop-down window. You can use the ButtonGlyph property to set a custom image instead of the default drop-down button glyph.

VCL Editors Library: The Default Drop-Down Button Glyph

Example

The following code example displays a custom image instead of the default drop-down button glyph in a calculator editor:

  cxCalcEdit1.Properties.ButtonGlyph.LoadFromFile('MyGlyph.png');

VCL Editors Library: A Custom Drop-Down Glyph Example

Limitations

You can use the ButtonGlyph property to display a custom glyph on the ellipsis button of TcxMRUEdit and TcxColorComboBox editors if it is visible. If the ellipsis button is hidden, the custom glyph is displayed on the drop-down button. MRU editors and color combo boxes display the ellipsis button if their Properties.ShowEllipsis and Properties.AllowSelectColor properties are set to True, respectively.

See Also