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.

HighlightFont property

Project: Hot Label Component.

Unit: PJHotLabel.

Class: TPJHotLabel

Applies to: ~>2.0

property HighlightFont: TFont;

Description

This property controls the appearance of the label when the mouse passes over it.

A TPJHotLabel can highlight its text when the mouse passes over the control. The font that is used to highlight the text is determined by the HighlightFont property. The property defaults to the same font as the Font property but with the colour changed to clRed.

Note that the highlighting only takes place when the HighlightURL property is True.

It is recommended that only the colour and certain styles of the font are altered and the font size and name remain unchanged so that the label does not grow and shrink when the cursor passes over it. See the highlighting example for details of two suitable designs.