Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.42 KB

TPJHotLabel-Font.md

File metadata and controls

27 lines (15 loc) · 1.42 KB

Font property

Project: Hot Label Component.

Unit: PJHotLabel.

Class: TPJHotLabel

Applies to: ~>2.0

property Font: TFont;

Description

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.