2

How do I change the font of the link TLinkLabel? For example, I want that the size of this link was 10 and the color blue: TLinkLabel I'm trying to change this way:

LinkLabel1.Font.Color:=clBlue;
LinkLabel1.Font.Size:=10;

,but nothing happens.

dedoki
  • 709
  • 4
  • 14
  • 24

1 Answers1

3

To make TLinkLabel react on changes to its font property you have to set UseVisualStyle := false.

Note: you cannot have different fonts for static text and the link text. The rendering is done by Windows internally and there are no means to influence this.

Uwe Raabe
  • 45,288
  • 3
  • 82
  • 130