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

# TButtonGlyph.CanShowGlyph

Determines if an image is available for the button glyph.

## Declaration

Source position: buttons.pp line 115

`protected function TButtonGlyph.CanShowGlyph: Boolean;`

## Function result

True when a glyph image is available.

## Description

CanShowGlyph is a Boolean function used to determine if an image is available for the button glyph. The return value is True when an image has been specified using one of the following mechanisms (in the order of precedence):

- Images is assigned and contains valid button state images
- LCLGlyphName contains a non-empty resource name
- ExternalImages is assigned and contains a valid ExternalImageIndex value

## See also

TButtonGlyph.Images |  | The list of available images for the button glyph.
TButtonGlyph.ExternalImages |  | Contains a reference to an external list of images that can be used as the Glyph image,
TButtonGlyph.LCLGlyphName |  | Stores the standard LCL resource name used for the Glyph in the class instance.