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

# TToolButton.ShowCaption

Indicates whether the Caption text is displayed on the tool button.

## Declaration

Source position: comctrls.pp line 2214

`published property TToolButton.ShowCaption : Boolean read FShowCaption write SetShowCaption default True;`

## Description

ShowCaption is a Boolean property which indicates whether the value in the Caption property is displayed on the button surface. The default value for the property is True, and enables the text on buttons with a Style value that is are not a divider or a separator.

ShowCaption is used in conjunction with the ShowCaptions property in the tool bar where the button is displayed. The ShowCaptions property in the parent tool bar takes precedence. Setting ShowCaption to False for the button is relevant when the List property in the tool bar is True.

ShowCaption is used in the Paint method when the text size for the Caption is calculated.

## See also

TToolButton.Caption |  | The text displayed for the control.
TToolButton.Style |  | Determines the display style for the tool button.
TToolButton.Paint |  | Draws the tool bar button to the Canvas for the control.
TToolBar.ShowCaptions |  | Indicates whether captions are displayed on tool bar buttons.
TToolBar.List |  | Indicates whether buttons on the tool bar are displayed using a list style.
TToolButtonStyle |  | Enumerated type with values representing the display styles and behaviors for buttons on a TToolBar control.