Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

Caption property

Project: Hot Label Component.

Unit: PJHotLabel.

Class: TPJHotLabel

Applies to: ~>2.0

property Caption: TCaption;

Description

This property specifies a text string that that may be displayed in the label.

Use Caption to set the text displayed in the label. If the CaptionIsURL property is True then the Caption and URL properties are equivalent, i.e. assigning a value to one will also assign the the same value to the other. This makes it easy to display the URL in the label itself. To display text on the label that is different to the URL make sure that the CaptionIsURL property is False.

For reasons of backward compatibilty with earlier versions of the component the default behaviour is for the Caption property to display the URL (i.e. CaptionIsURL is True by default).

If the ValidateURL and CaptionIsURL properties are both True then any text assigned to the Caption property must be a valid URL or an exception will be raised.

Caption’s behaviour with regard to accelerator characters and the ampersand (&) is identical to that of TLabel. See Delphi help for further information.

The default value of the Caption property is the default URL http://localhost/.