[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Buttons' (#lcl)

# TButtonGlyph.Glyph

The bitmap image drawn as the glyph on the button.

## Declaration

Source position: buttons.pp line 135

`public property TButtonGlyph.Glyph : TBitmap read FOriginal write SetGlyph;`

## Description

Glyph is a TBitmap property with the bitmap image drawn as the glyph for the class instance. The value in Glyph is created/loaded when a bitmap is assigned directly to the property, or when loaded from a Lazarus resource or stock icon.

Assigning a new TBitmap value to Glyph causes the reference in ExternalImages to be discarded. The GlyphChanged method is assigned to the OnChange event handler in the bitmap to track changes to the image. If the Bitmap contains multiple adjacent images (determined using Width and Height), the NumGlyphs property is updated to contain the number of glyphs stored in the bitmap. The Refresh method is called to update the button glyph following changes to its property values.

## See also

TButtonGlyph.GlyphChanged |  | Provides a default implementation for the OnChange event handler.
TButtonGlyph.ExternalImages |  | Contains a reference to an external list of images that can be used as the Glyph image,
TButtonGlyph.NumGlyphs |  | The number of glyphs available for button states.
TButtonGlyph.Refresh |  | Updates the button glyph after changes to property values.