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.

Font property

Project: Hot Label Component.

Unit: PJHotLabel.

Class: TPJHotLabel

Applies to: ~>2.0

property Font: TFont;


Font controls the attributes font used to display the label when it is not highlighted.

[~>2.2] At run-time the Font property is only displayed if the Visited [~>2.2] property is False, otherwise the label’s display font is that specified by the VisitedFont [~>2.2] property.

To change to a new font, specify a new TFont object. To modify a font, change the value of the Color, Height, Name, Pitch, Size, or Style of the TFont object.

The default value of TPJHotLabel’s Font property is different from that of the inherited property: the font Color defaults to clNavy and the font Style defaults to [fsUnderline]. The other attributes are those of the parent control when the component was first dropped on the form.

Since the default font attributes are likely to be different to those of the inherited Font property the ParentFont property defaults to False rather than True in the ancestor property. This means that any change to the parent control’s font will not be echoed in this component.

Note that Font is always used as the component’s display font at design time.