Back to Devexpress

TdxRibbonCustomButtonPersistent.StretchGlyph Property

vcl-dxribbon-dot-tdxribboncustombuttonpersistent-e700a1d9.md

latest1.6 KB
Original Source

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

TypeDefault
BooleanTrue

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

TdxRibbonCustomButtonPersistent Class

TdxRibbonCustomButtonPersistent Members

dxRibbon Unit