Sign in Join
FPDoc Onlineexperiment

TButtonGlyph.Glyph property

Member of TButtonGlyphpublicIn unit Buttons

The bitmap image drawn as the glyph on the button.

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.