如何使用 Delphi 在 TRichEdit 中添加超链接

发布于 2024-07-05 02:38:15 字数 172 浏览 6 评论 0原文

如何在 VCL 内的 TRichEdit 中添加超链接(使用 Delphi 编程语言)。

我需要这样的内容:

“这是我的文本,单击此处执行某些操作。”

How can I add a HyperLink in a TRichEdit within VCL (using Delphi Programming Language).

I need to have something like:

"This is my text, click here to do something."

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绝對不後悔。 2024-07-12 02:38:15

根据这篇文章delphi.about.com

不幸的是,Delphi 的 RichEdit 控件实现遗漏了该控件(来自 Microsoft)的最新版本中的许多功能。

您可以添加自己的功能,如此处所述。

注意:Delphi 2009 刚刚发布,因此 TRichEdit 控件可能已更新为支持模式功能。

According to this article on delphi.about.com

Unfortunately, Delphi's implementation of the RichEdit control leaves out a lot of the functionality found in more recent versions of this control (from Microsoft).

You can add your own functionality as discussed here.

NOTE: Delphi 2009 has just been released, so the TRichEdit control may have been updated to support mode features.

饮湿 2024-07-12 02:38:15

我不知道 About.com 文章中是否提到过,但我认为值得一提的是,只有 TRichEdit 本身直接放置在表单上(而不是面板中)时,TRichEdit 中的超链接才有效。

http://www.scalabium.com/faq/dct0146.htm

i don't know if it's mentioned in the About.com article but i think it's worth mentioning that the hyperlink in TRichEdit only works if the TRichEdit itself is directly placed on the form (not in a panel).

http://www.scalabium.com/faq/dct0146.htm

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文