如何使用Delphi在TRichEdit中添加HyperLink

时间:2023-01-12 12:01:43

How can I add an HyperLink in a TRichEdit (using Delphi).

如何在TRichEdit中添加HyperLink(使用Delphi)。

I need to have something like:

我需要有类似的东西:

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

“这是我的文字,点击这里做点什么。”

4 个解决方案

#1


4  

According to this article on delphi.about.com

根据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).

遗憾的是,Delphi对RichEdit控件的实现省略了此控件的更新版本(来自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.

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

#2


4  

If you really want hyperlinks and more, you could check out TRichView. There is a good demonstration of its capabilities at link text.

如果您真的想要超链接等等,可以查看TRichView。在链接文本中很好地展示了它的功能。

#3


3  

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).

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

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

#4


1  

The richedit in Infopower supports hyperlinks.

Infopower中的richedit支持超链接。

#1


4  

According to this article on delphi.about.com

根据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).

遗憾的是,Delphi对RichEdit控件的实现省略了此控件的更新版本(来自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.

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

#2


4  

If you really want hyperlinks and more, you could check out TRichView. There is a good demonstration of its capabilities at link text.

如果您真的想要超链接等等,可以查看TRichView。在链接文本中很好地展示了它的功能。

#3


3  

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).

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

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

#4


1  

The richedit in Infopower supports hyperlinks.

Infopower中的richedit支持超链接。