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

# TButtonGlyph.CanShow

Indicates if the glyph image can be drawn for the button glyph.

## Declaration

Source position: buttons.pp line 114

`protected function TButtonGlyph.CanShow: Boolean;`

## Function result

True when the glyph can be displayed on the button.

## Description

CanShow is a Boolean function which indicates if the glyph can be drawn for the button glyph. The return value is determined by examining the value in the ShowMode property. Values in the TGlyphShowMode enumeration determine the return value using the following logic:

gsmAlways
  Return value is True
gsmNever
  Return value is False
gsmApplication
  Uses the Application.ShowButtonGlyphs property to determine the return value
gsmSystem
  Uses the value from SystemShowButtonGlyphs as the return value

Remark: | The return value is always True at design-time.

Use CanShowGlyph to determine if an image is available to be drawn on the button.

## See also

TButtonGlyph.ShowMode |  | Indicates the logic used to display the Glyph image for the class instance.
TGlyphShowMode
TButtonGlyph.CanShowGlyph |  | Determines if an image is available for the button glyph.