Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改链接 TLinkLabel 的字体?例如,我希望此链接的大小为 10,颜色为蓝色: 我正在尝试以这种方式进行更改:
LinkLabel1.Font.Color:=clBlue; LinkLabel1.Font.Size:=10;
,但什么也没有发生。
要TLinkLabel对其字体属性的更改做出反应,您必须设置UseVisualStyle := false.
TLinkLabel
UseVisualStyle := false
注意:静态文本和链接文本不能使用不同的字体。渲染是由 Windows 内部完成的,无法影响这一点。