views:

1142

answers:

5

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

I need to have something like:

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

+4  A: 

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.

stukelly
+4  A: 

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

+1  A: 

The richedit in Infopower supports hyperlinks.

Tom
A: 

I'm also using TRichView, and is really the best rich editor for delphi

+1  A: 

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

X-Ray
It is mentioned in the about.com article; they even present a workaround for it.
Martijn