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

# TCustomButtonPanel.ShowGlyphs

Indicates the panel buttons displayed with Glyphs (small images).

## Declaration

Source position: buttonpanel.pas line 112

`public property TCustomButtonPanel.ShowGlyphs : TPanelButtons read FShowGlyphs write SetShowGlyphs default DefShowGlyphs;`

## Description

ShowGlyphs contains values from the TPanelButton enumeration, and defines which panel buttons in ShowButtons are displayed with glyph images. The default value for the property is defined in the DefShowGlyphs constant.

Changing the values in the property causes the panel and its buttons to be re-sized and re-drawn.

A default glyph image is provided for each TPanelBitBtn instance on the panel using the internal button name, like "OKButton" or "CancelButton". The default glyph image is loaded from LCL glyph resources when the button is created. Use OkButton, CancelButton, CloseButton, and HelpButton to provide custom values used in the panel buttons.

Use ShowButtons to control which buttons are displayed on the panel. For example:

    // var aButtonPanel: TButtonPanel...
    // use Ok and Cancel buttons only
    AButtonPanel.ShowButtons := [pbOk, pbCancel];
    AButtonPanel.ShowGlyphs := [pbOk, pbCancel];

## See also

TCustomButtonPanel.OkButton |  | OKButton - a button with the caption 'OK' signifying acceptance by the user.
TCustomButtonPanel.CancelButton |  | CancelButton - a button with the 'Cancel' caption for cancelling the operation.
TCustomButtonPanel.CloseButton |  | CloseButton - a button with the 'Close' caption for terminating the Form or panel.
TCustomButtonPanel.HelpButton |  | HelpButton - a button with the 'Help' caption, for requesting help.
TCustomButtonPanel.ShowButtons |  | Indicates the buttons displayed on the panel.
TPanelBitBtn |  | Implements the buttons displayed for TButtonPanel.
DefShowGlyphs |  | Defines the default glyphs displayed for the buttons on a button panel instance.