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

# TButtonGlyph.NumGlyphs

The number of glyphs available for button states.

## Declaration

Source position: buttons.pp line 137

`public property TButtonGlyph.NumGlyphs : TNumGlyphs read GetNumGlyphs write SetNumGlyphs;`

## Description

NumGlyphs is a TNumGlyphs property which indicates the number of glyphs available for its button states. The default value for the property is 1 (the low value for the range), and indicates that a single image is used for all button states in the TButtonGlyph.

The value in NumGlyphs is updated when a TBitmap instance is directly assigned to the Glyph property, and when GetImageIndexAndEffect retrieves the Images and drawing effect(s) for a given display density (PPI).

Reading the value in NumGlyphs causes the ExternalImages property to be examined; when it is assigned, the value for the property is always 1 (corresponding to the ExternalImageIndex). Otherwise, the value in the internal member is used.

Changing the value in NumGlyphs causes the Refresh method to be called.

## See also

TButtonGlyph.Glyph |  | The bitmap image drawn as the glyph on the button.
TButtonGlyph.ExternalImages |  | Contains a reference to an external list of images that can be used as the Glyph image,
TButtonGlyph.ExternalImageIndex |  | Ordinal position for the bitmap in ExternalImages displayed when the button is Up (not pressed).
TButtonGlyph.Refresh |  | Updates the button glyph after changes to property values.
TNumGlyphs |  | Defines the range of values available to access button glyphs.