Skip to main content

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

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