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

TdxRibbonCustomButtonPersistent.StretchGlyph Property

Specifies whether the button’s glyph is stretched (or compressed), if its size is smaller (or larger) than a 24x24 pixels bitmap.

#Declaration

Delphi
property StretchGlyph: Boolean read; write; default True;

#Property Value

Type Default
Boolean True

#Remarks

The base size for the button’s glyph is 24x24 pixels. If you provide a bitmap with other dimensions, set the StretchGlyph property to True to fit this bitmap into the button’s boundaries.

The scale is calculated based upon the Windows density of 96 dpi.

The StretchGlyph property affects not only the glyph specified via the button’s Glyph property, but also the icon used as the button’s glyph if this glyph is not explicitly specified:

The default value of the StretchGlyph property is True.

See Also