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

TToolBar.ShowCaptions

Indicates whether captions are displayed on tool bar buttons.

Declaration

Source position: comctrls.pp line 2386

published property TToolBar.ShowCaptions : Boolean
  read FShowCaptions
  write SetShowCaptions
  default False;

Description

ShowCaptions is a Boolean property which indicates whether caption text is displayed on tool bar buttons. The default value for the property is False. Changing the value for the property causes the tool bar to be redrawn.

ShowCaptions is used in the Paint method for the tool buttons on the control. When set to True, the caption text for a button is centered aligned at the bottom edge of the button. The icon for a button is drawn center aligned at the top edge of the button.

Use the List property (along with ShowCaption in the tool buttons) to display captions and icons using a list-style format where the icon and caption are on a single line.

See also

TToolBar.DisabledImages

  

List with images displayed when a tool button is not enabled.

TToolBar.HotImages

  

List with images displayed when a button is "hot" or hovered.

TToolBar.Images

  

List with images displayed when a tool button is enabled.

TToolBar.List

  

Indicates whether buttons on the tool bar are displayed using a list style.

TToolButton.Paint

  

Draws the tool bar button to the Canvas for the control.

TToolButton.Caption

  

The text displayed for the control.

TToolButton.ImageIndex

  

Ordinal position in an image list for the icon displayed on the tool button.

TToolButton.ShowCaption

  

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


Version 3.2 Generated 2024-02-25 Home