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

TcxCustomDropDownEditProperties.ButtonGlyph Property

Specifies the custom glyph for the drop-down button.

#Declaration

Delphi
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

#Code Example: Display a Custom Drop-Down Glyph

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