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:
For the Ribbon Application Button, the application icon is used;
For the Ribbon Help Button, the default icon provided by the ExpressBars Suite is used.
The default value of the StretchGlyph property is True.