简体   繁体   English

Delphi 11 TRichEdit 超链接停止工作

[英]Delphi 11 TRichEdit hyperlink stopped working

I used this thread ( Adding true hyperlink support to TRichEdit ) to add hyperlinks to my TRichEdit components but since I installed the new delphi they stopped working.我使用此线程( 向 TR​​ichEdit 添加真正的超链接支持)将超链接添加到我的 TRichEdit 组件,但由于我安装了新的 delphi,它们停止工作。

Has anyone figured out why yet?有没有人知道为什么?

The TRichEdit Component was updated to RichEdit 4.1 in Alexandria, so you do not need any hocus pocus in order to get URL links to work anymore. TRichEdit 组件在 Alexandria 中已更新为 RichEdit 4.1,因此您不再需要任何欺骗手段来使 URL 链接工作。

Just set TRichEdit's EnableURL to true in the property window (or via code), write some code in the TRichEdit's OnLinkClick event to be fired when the link is clicked, and off you go.只需在属性窗口(或通过代码)将 TRichEdit 的 EnableURL 设置为 true,在点击链接时触发的 TRichEdit 的 OnLinkClick 事件中编写一些代码,然后就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM