Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCoolBand.Text

Text displayed as the identifier or caption for the band.

Declaration

Source position: comctrls.pp line 2555

published property TCoolBand.Text : TTranslateString
  read FText
  write SetText;

Description

Text is a TTranslateString property which contains the text displayed on the band when the ShowText property in the parent control (TCoolBar) is enabled. As a TTranslateString value, it can be translated using the LCL localization mechanism when enabled for the project.

Changing the value for the property causes the width for the text to be calculated using the canvas font on the parent control. The Changed method is called to update the item in the bands collection for the parent control.

Text is used in the Paint method in TCustomCoolBar when the band is rendered onto the canvas for the parent control.

Use ImageIndex to specify the position for the image drawn as the icon for the band.



CT Web help

CodeTyphon Studio